Chutzpah Test Adapter for Visual Studio 2012

Free

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.

(11) Review
Visual Studio
2012
Download (11,552)
5/18/2013
2.4.1
View
E-mail Twitter del.icio.us Digg Facebook
Add To Favorites
Description
Reviews (11)
Q and A (7)
Sign in to Write a Review
Sort By:

by heikeMind | April 03 2013

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.

by MatthewBlott | March 29 2013

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.

Matthew Manela March 29 2013
| Edit |
Delete

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.

Thanks,
-Matt

by OsirisTerje | February 03 2013

by Ruezaki | December 25 2012

by Konstantin Tarkus | December 24 2012

Great job! Keep it going.

by Mads Kristensen | November 28 2012

by Shimmy Weitzhandler | October 28 2012

+5 for the name!!!

by Andre123456 | September 02 2012

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" />

Matthew Manela September 10 2012
| Edit |
Delete

3rd party extensions aren't support in the express skus. So this is by design. Even if you mark Chutzpah as supporting VWDExpress it still won't work.

by David Wesst | May 10 2012

Works just like it should, even if its in beta I wouldn't know. Using it with Jasmine tests.

Thanks!

by Vicenç García | April 05 2012

Great job!

by Steven Wilssens MSFT | March 01 2012

Sign in to Start a Discussion


  • Tests not being run after build
    3 Posts | Last Post 6:07 PM
    • I'm using Chutzpah to test some Typescript files and I have the Run Tests After Build option selected in the Test Explorer. I'm also using Web Essentials and the Compile TS on save/build options are set to true. If I save one of my test files then all of the tests are re-run but if I save any other file then the tests are not run. Any idea why not? 
      
      Thanks for making Chutzpah! Seems like a great tool.
    • From looking at your code it looks like this may be the expected behavior. Are there any work arounds that will let me run the tests whenever I save a TypeScript file. 
      
      I tried adding a reference to QUnit in one of my TS files so that chutzpah would think it was a test file but this didn't make any of the tests in the actual test files get run. I also tried adding a dummy test to one of my TS files which sort of worked but it seemed to cause some circular dependency issue and tests were run multiple times and had the wrong line numbers in the output.
    • Have you tried setting Chutzpah to run directly on the .ts files instead of on the generated .js file? There is an option in the Tools->Options->Chutzpah page.
  • Headless browser
    3 Posts | Last Post May 29, 2013
    • First I must say, nice work!
      
      However, I can't get the Test Adapter to run headless through using phantom.js.
      I've installed the NuGet-package for phantom.js and headless jasmine.js, but it still opens the jasmine side in the browser (not displaying anything).
      
      I can't find any options for this - the "test explorer" however runs headless, but do not have as much feedback as the "unit test sessions"-tab.
    • I found a setting for which browser to use under Resharper -> Options (so I guess you need resharper?)
    • I am not really following what you are asking. Chutzpah has nothing to do with Resharper. 
      
      What exactly are did you try to do? It might be better to move your questions to chutzpah.codeplex.com.
  • Unit test issue of Metro app with Chutzpah
    2 Posts | Last Post January 04, 2013
    • 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"
      
    • Chutzpah doesn't support running WinJS unit tests yet. This is an area I am still investigating.
  • Chutzpah and TFS build - .html unit test issue
    5 Posts | Last Post December 17, 2012
    • 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 . 
      
    • Following the FAQ response on this page: http://chutzpah.codeplex.com/wikipage?title=tfsbuild. 
      
      Let me know if this helps
    • 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.
    • I configured the run settings with the settings file you suggested.It worked as expected .Thanks  you for your time & help
  • Chaijs; Automatic tests
    3 Posts | Last Post November 09, 2012
    • 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.
  • Not seeing tests
    2 Posts | Last Post July 31, 2012
    • When QUnit tests are not being detected, either in HTML or JS, what is a good way to troubleshoot why?
    • What issue are you seeing? 
  • Jasmine version
    2 Posts | Last Post July 09, 2012
    • What versión of Jasmine is used in Chutzpah 1.4.3?
      
      Thank you,
      Vicenç
    • That version of Chutzpah uses Jasmine 1.1.