Monday, 29 April 2019

Running javascript tests in visual studio Test Explorer using Chutzpah


Add the Chutzpah Test Adapter for the Test Explorer extension into visual studio



Add some js files to your test project that will hold the javascript tests

Add a chutzpah.json settings file if you want? I found with mine that Chutzpah wasn't respecting the order that the references were added in, so it wasn't much help

Write your javascript tests

After one of visual studio's test discovery phases (e.g. runs after a build) the javascript tests should show in the Test Explorer

When you run tests the JS ones will also run


No comments:

Post a Comment