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

Get help with testing, discuss unit testing strategies etc.
Post Reply
User avatar
nikhil.bhatia
Posts: 2
Joined: Fri May 03, 2019 9:34 am

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

Post by nikhil.bhatia » Fri May 03, 2019 10:00 am

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'

User avatar
nickolay
Core Developer
Core Developer
Posts: 3329
Joined: Mon May 16, 2011 10:48 am

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

Post by nickolay » Mon May 06, 2019 11:31 am

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.
We offer training in both Ext JS and our products, read more here.
Read the API documentation

Post Reply