Page 1 of 1

Code coverage is not being computer with Siesta 5.1.0 for my non-Extjs project

Posted: Fri May 03, 2019 10:00 am
by nikhil.bhatia
With the release prior to 5.1.0 there was a button on the Siesta browser tests to check the code coverage but after upgrading to 5.1.0 there is no such button. I tried generating a code-coverage report using the following command but the report is not generated.

bin\webdriver localhost/MyProject/tests.html --nyc.reporter=html --nyc.include='/src/*.js'

Re: Code coverage is not being computer with Siesta 5.1.0 for my non-Extjs project

Posted: Mon May 06, 2019 11:31 am
by nickolay
Hi,

As highlighted here, Siesta 5.1.0 has a completely new code coverage module, which is only available from the command line.

Try specifying `--nyc.include` config as 'src/*.js' (w/o leading slash)? Probably it should also be : `src/**/*.js`
See https://github.com/istanbuljs/nyc#selec ... r-coverage for more details about how to specify the source files.