-
Notifications
You must be signed in to change notification settings - Fork 176
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
Way to get coverage report in HTML at the same time as console #118
Comments
I'm not opposed to it, but wouldn't it be better to just add the content of the console to the html report? |
The use case I'm thinking of is to get the nice, html CC report generated at the same time as running the tests in the console during my standard dev time. The HTML reports For example, I have something similar to the makefile for lab, where I have multiple test commands, and when I want to run my tests to see the output and also have code coverage generated I essentially have to run all tests twice. It would be beneficial to be able to specify multiple reporters, or be able to specify to have a single reporter, and have CC report generated. |
I guess, another way to look at it is that the current HTML reporter is more of a code coverage report than a test execution/result report. |
+1. The use case I have is that when I want to use multiple reporters, like adding a coverage report, seeing console output in a log and getting it in junit format for jenkins dashboards, I want it to be in the same run, with the same data set. This avoids issues of getting potentially different results for each reporter because you ran it again and it produced slightly different results (lets say you have a dependent service that isn't stable). It also speeds up the time, of simply not having to run the tests multiple times. I currently generate json results, and then copy the reporter functions to generate these different formats from the resulting json set so at least I am working with the same results. |
My point is that the html reporter should be fixed to provide the information generated for both testing and coverage. |
This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions. |
It would be great to be able to do something like
lab -vC -r console -r html:coverage.html
(-r html:coverage.html equivalent to '-r html -o coverage.html')
Right now I'm running the unit tests twice from a gulp task so I can see in my console how the tests are doing but also get the html report for coverage (I'm pushing it to a server to keep a record)
The text was updated successfully, but these errors were encountered: