I am working on running JS unit tests written in Jasmine using JSCover to generate code coverage report. Requirements are,
- We have list of files as a dependency to be loaded before running unit tests. I have looked at the JSCover documentation but is not very clear how to run the unit tests with dependency. Also, how to instrument the code for unit testing when used with PhantomJS and server mode.
- Dependent files should be loaded in the specific order
- Expecting results in a JSON format so that I can merge that file with other JSON files generated by JSCover
We are using Karma already to run Unit tests where we have defined dependency in the karma config file but I would like to use JSCover instead to get the same results to satisfy requirement #3 above.
Any suggestions?
Thanks,
Aucun commentaire:
Enregistrer un commentaire