JScover to get coverage report of UI project running on linux environment -
i use jscover check code coverage javascript changes. needed guidance on how proceed. i'm able run example application. not project.
the ui project runs in linux server dependency on other back-end projects(sending request , receiving response) uses c++ , runs in default port.
as far understand, coz of change in port number. please let me know if there way run jscover without changing port number. or if there way coverage report change in port number.
it sounds you're trying measure javascript coverage part of application. in case don't run jscover in web-server mode, running test suites jasmine, qunit, mocha, etc...
try running jscover in file-system mode, is, instrument javascript files, deploy them part of application. basic approach is:
- instrument javascript
- package application instrumented javascript
- run tests
- extract , save coverage data jscoverage.json
- save report files needed
the working example of approach @ https://github.com/tntim96/jscover/tree/master/examples/localstorage-file-system
jscover has proxy mode may work needs, ssl not supported. going file-instrumentation robust approach.
Comments
Post a Comment