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'
Support Forum
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.
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.
Read the API documentation