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
1 answer

Run Typescript QUnit tests for Typescript source files with Chutzpah

I'm trying to author a Typescript file with unit tests for a Typescript source file. My project structure: /js/my-unit.ts /js-tests/my-unit.tests.ts /Scripts/typings/qunit/qunit.d.ts /chutzpah.json Here's the my-unit.ts contents: function…
Jeroen
  • 60,696
  • 40
  • 206
  • 339
0
votes
1 answer

Result Message: Error: [$injector:modulerr] http://errors.angularjs.org/1.5.3/$injector/modulerr?p0=homeIndex&p1=

Presently, I am attempting to get the unit tests working for this code: BoostrapAngularJsEf Where my "home-index Tests-> dataService-> can load topics" is failing, giving me this error: Test Name: home-index Tests-> dataService-> can load…
user8128167
  • 6,929
  • 6
  • 66
  • 79
0
votes
0 answers

Chutzpah Test Runner/ adapter for visual studio 2013 not picking up .ts tests , but running from the console.?

I am using Mocha Framework for typescript test cases. i am able to run the test cases from the chutzpah console. but visual studio test adapter/runner is not picking up the test cases. pleas guide... following is the Json. > "Framework":…
N.K
  • 2,220
  • 1
  • 14
  • 44
0
votes
1 answer

Multiple showings of AngularJS Unit Tests in VS2015 Test Explorer with Chutzpah and Jasmin

I wrote some Unit Tests for my AngularJS stuff and use Chutzpah to run the tests in VS. That works like a charm but every test shows up 3 times in VS Test Explorer. Any idea why? My chutzpah.json looks like this: { "References": [ { "Path":…
Sknecht
  • 984
  • 2
  • 11
  • 31
0
votes
2 answers

Unit testing in AngularJS with Jasmine and Chutzpah

I am trying to write Unit test cases for existing SPA project built on angularJS. I get the "Can't find variable: module" error whenever I try to execute the code. I installed the libraries using npm. I used Chutzpah and Jasmine libraries for…
Jop.pop
  • 335
  • 4
  • 18
0
votes
0 answers

Chutzpah stop on first failed test

I am currently Chutzpah with Visual Studio .NET 2013 and QUnit. My chutzpah.json settings file has all of the JavaScript unit tests listed in a very specific order. However each test is dependent on the prior one succeeding, therefore, if one unit…
vbguyny
  • 1,170
  • 1
  • 10
  • 29
0
votes
0 answers

Anyway to define ordered tests using Chutzpah?

I am using the Chutzpah UnitTest extension in Visual Studio 2013. The only issue that I am currently having with it is that when I want to run all of the tests, I appears that Chutzpah randomly selects the order in which to run each test. Is there…
vbguyny
  • 1,170
  • 1
  • 10
  • 29
0
votes
1 answer

Am I making some mistake with Chutzpah.json file?

I am trying to test Angular using jasmine: My Folder structure: My chutzpah.json file: { "Framework": "jasmine", "TestHarnessLocationMode": "Custom", "TestHarnessDirectory": "../AngularExample", "TestHarnessLocationMode":…
nisha kanani
  • 273
  • 1
  • 4
  • 16
0
votes
1 answer

Static selected variables are lost while running QUnit tests

I just started using QUnit, and ran into an issue. When I write my JavaScript files, I put all of my variables at the top of the page like this: var $input1 = $('#input1'); var $submit = $('#submit'); Then, I wire up my events like…
krillgar
  • 12,596
  • 6
  • 50
  • 86
0
votes
1 answer

ko is not defined Error in Chutzpah

I'm trying to write Unit Testing for my SPA project. Where we have used the Durandal (Framework), Knockout (Binding) with RequireJs. I have installed the Chutzpah in Visual Studio 2012. When i run my Test for the View Model, it throws me below…
RajeshKdev
  • 6,365
  • 6
  • 58
  • 80
0
votes
1 answer

Public vars/methods on controller not seen as defined by Jasmine running through Chutzpah

I'm trying to run Jasmine tests on my Angular app using Chutzpah in Visual Studio. I have a controller that is defined as: angular.module('testApp') .controller('TestAppCtrl', ['TestService', function ($service) { var vm = this; …
Ivo Coumans
  • 759
  • 8
  • 23
0
votes
1 answer

How to mock calls to cordova plugins specific methods?

I'm newbie in testing of Cordova app, so could you please give an advice about what is "best practice" in my situation? Situation: I have a module factory: angular .module('app.services') .factory('UtilsService', UtilsService); function…
AlenSv
  • 125
  • 9
0
votes
1 answer

ReferenceError in Jasmine test using Chutzpah and ReSharper

I'm using Jasmine and Chutzpah to test my TypeScript project in Visual Studio 2013 with PhantomJS. If I run the tests using the Chutzpah context menu extension they work fine but when I run them using the ReSharper test explorer, they fail if there…
0
votes
1 answer

How to use real AJAX calls with Visual Studio, Chutzpah and Jasmine

I create some Jasmine test and want to run the test with the Visual Studio Test-Explorer and the Chutzpah Plugin. For some tests I need a real AJAX call, so I think it is not an option to fake the call. (jasmine ajax mock plugin) This simple test…
Chris
  • 159
  • 1
  • 13
0
votes
1 answer

Unable to load HTML test fixture for Jasmine in Visual Studio 2013

I'm new to client-side testing, but have written a Jasmine test in Visual Studio that runs my JS code against an HTML "fragment" (part of my page) and successfully performs an Assert - all well and good. However, I'm not able to load the HTML from a…
DrGriff
  • 4,394
  • 9
  • 43
  • 92