mercredi 27 avril 2016

How do I unit-test my nodejs application with RESTful APIs and generate a HTML report in the project folder?

I have a NodeJS project with a bunch of unit tests. I want to run those unit tests and have the test results put inside a html page that sits somewhere within the project folder. I want to use a grunt task to run this test, create the report and optionally open this html report.

Whenever I google this question, my search page gets muddled with karma, mocha, chai, karma-jasmine, karma-mocha and a plethora of irrelevant results.

I don't want to over-complicate my stack. All I want, is for my test results to site inside a html file inside of displaying on an ugly console when I type jasmine.

Aucun commentaire:

Enregistrer un commentaire