I am attempting to run existing qUnit test in Visual Studio 2012 using Chutzpah that are currently in a HTML page and I'm not able to get the VS IDE to recognize the tests. When running a straight JS test VS2012 does recognize the test, for instance when I create testSample.js with something like the following the test shows up in the VS IDE.
test("Adding Two Numbers Succeeds", function () {
expect(1);
var num1 = 10;
var num2 = 25;
var exp = num1 + num2;
equal(exp, addNumbers(num1, 25));
});
What I would like to have is for the tests to run in context of an HTML page so I can inject things into the DOM and test against that. Since I already have qUnit tests in an HTML document I would really like to jsut have VS2012 recognize them. Anyone know how to get Chutzpah to recognize these tests?
As a side note from the documentation it appears as though you should be able to right click a JS file or HTML file with qUnit tests and hit 'Run JS tests' but that option does not sow up for me after running the Nuget Chutzpah package as well as installing the Chutzpah Test Adapter. Anyone know why that option may not be showing up (I did restart the IDE). Thanks in advance