Chutzpah 1.3.0 Released

A new version of Chutzpah is now live on Visual Studio Gallery, CodePlex and now NuGet.

This release contains the following changes:

Features

1. Chutzpah is now able to run Jasmine tests in addition to QUnit. This was a large feature and new Chutzpah contributor Ben (Qube) did an amazing job with it.

2. Added a new configuration option to set the timeout on a test file. By default this value is 3000ms but there are many cases when you may have long running tests where you need this to be longer. You can now set this timeout from the command line:

chutzpah.console.exe /timeoutMilliseconds 5000 mytest.js

You can also set this inside of Visual Studio using the newly added options menu. You can find this menu under Tools->Options->Chutzpah.

image

 

Bug Fixes

1. Chutzpah now copies over the text fixtures that you set in your html test harness.

2. Added missing doctype on the generated test harness.

3. Fixed bug where multiple references to qunit.js were copied into the generated test harness.

  • Pingback: The Morning Brew - Chris Alcock » The Morning Brew #985

  • http://dan.cx/ Daniel15

    I’ve found a few issues with the Jasmine support when using it along with Jasmine-species. I’ll raise an issue on CodePlex.

  • https://www.google.com/accounts/o8/id?id=AItOawlrLeowWytSCscAcNv3ky4tdtP7AcgDAC8 Matthew

    Thanks Dan,

    I followed up on the Chutzpah CodePlex page.

  • http://twitter.com/AbrahamAlves AbraaoAlves

    I have unitTests with jasmine-jquery and my fixturePath defined.
    When run Chutzpah, my fixture.html file aren’t copied to temp folder, this a bug ?

    • https://www.google.com/accounts/o8/id?id=AItOawlrLeowWytSCscAcNv3ky4tdtP7AcgDAC8 Matthew

      The way Chutzpah currently works, it won’t copy over your test fixture. It will copy over relevant content from the existing fixture and create a new one.

      Does this behavior cause an issue for you? What logic is in your fixture HTML that isn’t present in the one Chutzpah creates?

      Thanks,
      -Matt

      • http://twitter.com/AbrahamAlves Abraão Alves

        I have this code:


        describe("plugin tests ", function() {

        jasmine.getFixtures().fixturesPath = "fixtures";

        beforeEach(function () {
        //I using jasmine-jquery
        loadFixtures("myfixture.html");
        ...

        And my structure directory:
        Scripts -> Test -> fixtures -> myfixture.html
        Scripts -> Test -> myplugin.test.js

        When Chutzpah run jasmine-jquery try request myfixture.html, but it don’t is there because no was copy to temp folder.

        How solution this ?
        How using chutzpah with fixtures in my tests ?

  • https://www.google.com/accounts/o8/id?id=AItOawlrLeowWytSCscAcNv3ky4tdtP7AcgDAC8 Matthew

    Chutzpah currently doesn’t support this. Chutzpah needs to know which files to copy, it does this by either scanning your current test harness for its references or scanning the “///

    It will not copy subfolders though. It flattens the tree. You could try to reference it using the “///

    Thanks,
    -Matt