Questions tagged [chutzpah]

Chutzpah is an open source JavaScript test runner which helps you integrate JavaScript unit testing into your website. It enables you to run JavaScript unit tests from the command line and from inside of Visual Studio. It also supports running in the TeamCity continuous integration server. Chutzpah supports the QUnit, Jasmine and Mocha testing frameworks. Chutzpah uses the PhantomJS headless browser to run your tests.

Chutzpah is an open source JavaScript test runner which helps you integrate JavaScript unit testing into your website. It enables you to run JavaScript unit tests from the command line and from inside of Visual Studio. It also supports running in the TeamCity continuous integration server.

Chutzpah supports the QUnit, Jasmine and Mocha testing frameworks. Chutzpah uses the PhantomJS headless browser to run your tests.

Resources

262 questions
0
votes
0 answers

Errors with relative paths in using Chutzpah and Require.js

I'm using Chutzpah, with Jasmine, to unit test a number of AMD modules using Require.js. My unit test project is separate to both the modules under test and the require.js config file. I'm using chutzpah.json to connect these together, as…
Darren Young
  • 10,972
  • 36
  • 91
  • 150
0
votes
2 answers

Typescript Breakpoints Fail when using Chutzpah

Per Chutzpah documentation on Github on the Compile configuration element. This setting lets you describe in the Chutzpah.json file how to execute a command which can compile your source files to .js files. You tell Chutzpah what to execute and…
gravidThoughts
  • 613
  • 5
  • 18
0
votes
1 answer

Using Chutzpah to test CommonJS modules used in duktape

I'm working in a game engine (Atomic Game Engine) which uses the Duktape embeddable javascript engine. This allows loading of CommonJS modules, so I have modules like the following: require("Scripts/LumaJS/Interface"); // Interface to be…
FlintZA
  • 872
  • 1
  • 11
  • 22
0
votes
2 answers

How can I fail the build based on based on chutzpah coverage?

I've feel like I've tried everything we currently have a solution that upon checkin to TFS we force a build on CruiseControl.net. In our solution we use the Chutzpah JS Test Adapter. We were able to successfully use the Chutzpah.console.exe to fail…
Doug Chamberlain
  • 11,192
  • 9
  • 51
  • 91
0
votes
2 answers

Chutzpah running both .ts and .js tests (the tests are effectively the same so the test count is doubled)

In Visual Studio, right-click on a .ts file and "Run JS Tests", only the tests in the .ts file run and are counted in the total. "Run JS Tests" at the folder level or project level and both the tests in the .ts and .js files are run and counted in…
DG_Tor
  • 23
  • 2
0
votes
1 answer

Qunit tests are not working on visual studio 2012 as they work on browser

I have developed an SPA application using knockout and breeze, I have been using qunitJS for unit testing which works well on browser for my project. Recently I have found a plugin "Chutzpah" for VS2012, which can work well for testing qunit, which…
0
votes
1 answer

Jasmine Unit Tests displaying multiple times in Visual Studio 2012 Test Explorer

I am writing unit tests for an angularjs application using jasmine with the test runner being chutzpah. All code for this application is written with typescript and the chutzpah.json file is configured to compile the .ts files properly. The editor…
gyochum
  • 131
  • 4
  • 12
0
votes
2 answers

beforeEach is being called for every test instead of just once

I'm encountering a situation when I use the beforeEach async and I have a couple of tests in my spec. I see that the beforeEach is getting called for each test that runs instead of only once before all the tests - what am I doing wrong? Here's my…
Ace
  • 831
  • 2
  • 8
  • 28
0
votes
1 answer

Load an external script in Jasmine before other scripts are loaded

I'm using TypeScript to build by JS files in my project. I also use chutzpah extension to visual studio to run my tests. The issue I'm having is that I have an 3 scripts that needs to be loaded and my test .ts file as the last one. The problem I'm…
Ace
  • 831
  • 2
  • 8
  • 28
0
votes
1 answer

Angular unit test works with test page but errors in Chutzpah

I'm trying to learn how to perform unit testing for Angular controllers, services, etc in Visual Studio 2012 using Chutzpah and Jasmine. All of my tests work fine when executed from a test page (TestRunner.html) that I created, but one of them…
bfout
  • 33
  • 2
0
votes
2 answers

Unit testing $rootScope.$$phase and $rootScope.$digest()

My site has $rootScope.$broadcast('task1-completed', service.options.language); which then calls $rootScope.$on('task1-completed', function() { if (!$rootScope.$$phase) { $rootScope.$digest(); } }); The unit tests work fine for the…
Timothy
  • 1,198
  • 3
  • 10
  • 30
0
votes
1 answer

Why might my typescript tests fail when I run with Chutzpah using PhantomJS

I have some typescript tests which are running fine using Chutzpa to run them. Today I added a property of type Map to my model being tested and now all tests which use that model fail when I run them using the headless (PhantomJS) runner. They…
Sam Holder
  • 32,535
  • 13
  • 101
  • 181
0
votes
1 answer

How do I change the underlying Phantomjs object settings using Chutzpah?

We have some QUnit javascript tests running in Visual Studio using the Chutzpah test adapter. Everything was working fine until we changed our api (the one being tested by the js files) recently, and added some validations over the UserAgent http…
julealgon
  • 7,072
  • 3
  • 32
  • 77
0
votes
1 answer

Chutzpah Code Coverage "EnableCodeCoverage": "true" not generating html file

I am able to generate the code coverage using the context menu. I would like to generate the coverage file whenever I run the unit test. It tried setting this JSON property "EnableCodeCoverage": "true" but it is not working. Is that…
Raajkumar
  • 857
  • 2
  • 13
  • 26
0
votes
0 answers

Jasmine + AngularJS + Chutzpah + getting unknown error

I am facing the issue while compiling the jasmine js unit test project Please check following screen shot. Previously i was getting the timeout issue but now i am getting "unknown error" issue. Any one know the solution ? Also some times i am…
user3249448
  • 1,369
  • 2
  • 14
  • 34