Chutzpah adapter for the Visual Studio 2012 Unit Test Explorer. Chutzpah is an open source JavaScript test runner which enables you to run JavaScript unit tests from the command line and from inside of Visual Studio.
I like the plugin on my local development environment. But it has been a huge problem on setting up TFS with chutzpah in typescript. I have not able to fix an issue in the issue tracker almost a month: http://chutzpah.codeplex.com/workitem/98
I also not sure whether it is the only problem I faced unless I can solve it and move forward. Also the blog for setting up TFS with chutzpah is outdated. The dll files are not matched. So I am also wonder whether I am doing a right by following the blog. Thanks.
I've ranked this two stars which is a bit generous but I did have it working at some point a while ago. I've tried to install several times and have now rebuilt my machine and still no joy. I have posted a question on StackOverflow but, alas, not a single answer yet. I do a lot of JavaScript these days and this would be a real help but I'm wondering whether it's worth ditching VS and moving to WebStorm and a Mac environment.
Sorry that you are running into issues. I responded a few days ago on your StackOverflow post asking if you could file a bug on chutzpah.codeplex.com and attach a zip file which contains a repro. That would help me track and diagnose your issue.
I had to add the following to the extension.vsixmanifest in Chutzpah.VS2012.vsix, to get it to install in VS Express: <InstallationTarget Version="[11.0,12.0)" Id="Microsoft.VisualStudio.VWDExpress" />
We are trying to do unit test of our Metro app developed with javascript; we use WinJS.xx and Windows.xx in our js file, when we try to do unit test with Chutzpah, the following error is thrown out.
"JS Error: ReferenceError: Can't find variable: WinJS"
Hi , Thanks for your work, I have one question
I configured TFS Build to use Chutzpah runner & it is running my jasmine java script(.js) test ,without any issue.
But the issue is , the unit test for .html files is not running as part of the TFS build. I am using QUnit for my .html files. i have added a separate automated test for html (**\*html ) as part build configuration .
No ,it is not working. where should the .runsettings be put ,is it as part of chutzpah binaries or part of test scripts. it cannot be included in the vs2012 solution because , the file name starts ".". Please advise.
Sorry, I wasn't clear enough. You need to create a file named something.runsettings. Then in the TFS Build setup there is a section where you can specify your test settings and you can point at this file. I will look this up and add screenshots to that page I sent soon.
Hi, thanks for your work, I have 2 questions:
#1: currently I'm using Chai (chaijs.com) with Mocha for tests (BDD "should" style; mostly in-browser for some reasons). Is there a chance to make them working using your adapter or should I rewrite them to Jasmine/QUnit?
#2: is it possible to automate these test in VS (immediately after source file modification)?
#1: Chutzpah doesn't support Mocha yet. This would be a nice addition but I probably won't get to it for a while. You can file an issue for this on chutzpah.codeplex.com so we can track it. You can use ChaiJS though with QUnit or Jasmine.
#2: Yes you can, in the Unit Test Explorer you can check the "Run Tests after Build" toggle. Even though it says "after build" for Chutzpah this will mean each time you save your test file.
+1 for Mocha. Mocha allows you to use any assertion library (QUnit and Jasmine don't) and async test writing in Mocha is an order of magnitude simplier than the other two.