0 votes
1 view
in Azure by (8.4k 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

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...