-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
multi-run reports #9
Comments
Hi -it's not possible at the moment. The formatter only knows about the file that is being executed and then after it's finished it generates the report. The only way would be to collect the data from each run somewhere and then use that to generate the report. |
Would it be hard to add ability to store report in other directory - the path could be read from ENV variable? Looking at the https://github.com/kingsleyh/rspec_reports_formatter/blob/master/lib/rspec_html_formatter.rb - maybe something like: class RspecHtmlFormatter < RSpec::Core::Formatters::BaseFormatter
# ...
REPORT_PATH = ENV['REPORT_PATH'] || './rspec_html_reports' If that make sense to you I'm happy to provide a PR. |
We're switched to our fork, here's PR: #10 if you're interested (it needs tests and docs). thx |
I think a good solution would be to write out the data to a directory in something like yaml format for each run and then have each run generate an additional cumulative report based on the data |
There is actualy a rspec JSON formatter which could be used as a step before html generation. |
@kingsleyh would you be able to help me a bit with implementing such feature. I don't want to change current behaviour - just make it a special case of more general report generation. I understand that this can take some time but (if everything goes well) I or someone else from our company will be able to spend some time on this in July. If that's OK, please point where should we start? |
You could use the json formatter and then write your own standalone script that produces a report based on that. |
Awesome project!
I have a quick question.
In my case each rspec invocation has to perform some test-specific setup, for other reasons I can't run them all at once.
How could I handle building cumulative reports from multiple rspec runs? No specs are repeated during those runs. It would be nice to display it on single 'overview' page. Is that currently possible? I could possibly copy generated files after each rspec run into some target directory but how to "merge" overview.html at the end?
thx & have a nice weekend!
The text was updated successfully, but these errors were encountered: