Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Way to get coverage report in HTML at the same time as console #118
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 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.
+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.