Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Azure by (45.3k points)

I can't for the life of me find documentation or a tutorial for kicking off mocha unit tests in Visual Studio Online builds.

I have a node.js app that is building in VSO and being deployed to Azure. That all works wonderfully. I can't seem to figure out how to kick off the spec files through the build process.

How is this done? Is there documentation available somewhere that I'm missing?

1 Answer

0 votes
by (16.8k points)
  • Set Tool to node
  • Set Arguments to $(Build.SourcesDirectory)\node_modules\jasmine-node\bin\jasmine-node --verbose test\

My tests are under a "test" folder, also make sure you have jasmine-node as a dev dependency enter image description here

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...