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
61
votes
8 answers

Unit testing using Jasmine and TypeScript

I am trying to get a unit test written in Typescript using Jasmine to compile. With the following in my unit-test file, Resharper prompts me with a link to import types from jasmine.d.ts. /// ///
aw1975
  • 1,669
  • 3
  • 20
  • 35
25
votes
2 answers

How do I debug my JavaScript that is being executed by Chutzpah/PhantomJS

I am using Chutzpah to execute my JavaScript unit tests. I reference paths to my source files and below have a series of tests. Text Explorer in Visual Studio lists my tests and I can execute them directly from the IDE, so everything seems to be…
Greg
  • 31,180
  • 18
  • 65
  • 85
23
votes
3 answers

Jasmine in a separate test project

Is it practical/possible to separate jasmine tests into a separate visual studio project? I am just getting started with angular, and am trying to write my tests before I start on the actual angular implementation. I will be writing my project in…
ton.yeung
  • 4,793
  • 6
  • 41
  • 72
16
votes
6 answers

How can I test a directive using templateUrl in Chutzpah's headless browser

Does anyone know how to get a headless browser like Chutzpah's Visual Studio Test Adapter to allow a directive to access its .html template file? Chutzpah uses PhantomJS for a headless browser which appears to limit my options. I'm using Chutzpah…
user545680
11
votes
2 answers

Karma vs Chutzpah

I have been trying to figure out what is the best way to write/run automated jasmine tests in visual studio. Currently, I am using jasmine with Resharper (using PhantomJS) and the test can be run from visual studio. Now I want to run the tests as…
tangokhi
  • 945
  • 2
  • 8
  • 20
11
votes
3 answers

Testing javascript with Chutzpah and requirejs

I just wonder if there is a simple tutorial showing how to test javascript in visual studio with Chutzpah, require.js and jasmine. Basically, i want to run the tests without using an .html file so that i can see the results in the vs test explorer.
ppoliani
  • 4,792
  • 3
  • 34
  • 62
8
votes
2 answers

When testing angularjs controller - Can't find variable: module / inject by chutzpah

I have angularJs controller angular.module('App.ctrl.guests', []) .controller('guestsController', ['$scope', '$http', '$location', '$timeout', 'guestsService', function ($scope, $http, $location, $timeout, guestsService) { $scope.tiles =…
netmajor
  • 6,507
  • 14
  • 68
  • 100
8
votes
1 answer

Chutzpah Can't find variable

I am using TypeScript 1.0 with Visual Studio 2012, Chutzpah 3.2.1.1 and Jasmine 2. I have a very basic test which compiles fine, but does not pass using the Visual Studio Chutzpah Test Adaptor or the command line one. I get the following error…
row1
  • 5,568
  • 3
  • 46
  • 72
8
votes
2 answers

Does phantomJS support geolocations?

I'm trying to run qunit test cases with PhantomJS. One of my tests are hanging in when phantomJS try to access the navigator.geolocation function of DOM. same test is working fine in the browser, just hangs in the console with phantomJS. doe…
7
votes
1 answer

How to remove Chutzpah from project to not show result in test explorer?

How to remove Chutzpah from project to not show result in test explorer? I have made a demo project to learn Chutzpah and installed it for VS2013. Now in my another project I don't use Chutzpah but Karma for testing Angularjs test cases, but still…
developer
  • 1,565
  • 1
  • 9
  • 12
7
votes
2 answers

Is it possible to use Chutzpah with Jenkins?

I'm no experience with Jenkins, I'm currently researching different options for PHP & JS automated unit testing with Jenkins. I've come across Chutzpah (which uses PhantomJS's headless WebKit browser) but: Is it possible to use Chutzpah with…
Adam Lynch
  • 3,341
  • 5
  • 36
  • 66
6
votes
2 answers

require.js require a module with index.js

So I'm trying to set up Typescript and Chutzpah for testing purposes. Typescript is set up to output in this format: define(['require', 'exports', './someModule'], function(require, exports, someModule) { //examplecode }); Which works fine, the…
Devan Buggay
  • 2,717
  • 4
  • 26
  • 35
6
votes
1 answer

JS Unit Test not appearing in VS 2015 Test Explorer

I am new to JavaScript unit testing. I am trying to test typescript classes and my tests are also written in typescript, which somewhat looks like below: /// import Utility1 =…
Sayan Pal
  • 4,768
  • 5
  • 43
  • 82
6
votes
1 answer

Running QUnit (TypeScript) tests with Chutzpah gives "Called start() outside of a test context while already started"

I've got a fairly simple repro with an outcome I don't understand. Make sure you have the Chutpah Test Adapter 4.0.3 installed. Using Visual Studio 2013 take the following steps: Create a new .NET 4.5.1 class library project; Add the NuGet package…
Jeroen
  • 60,696
  • 40
  • 206
  • 339
6
votes
1 answer

Visual Studio 13 + Chutzpah - Where do I find chutzpah.console.exe?

We want to use chutzpah (VS Extension) to run our Jasmine-tests with MSBuild (In a TFS-build). So I'm trying to locate chutzpah.console.exe (so that we can manually call it) somewhere on the local computer, but I cannot find it. Does anyone know…
AfroMogli
  • 577
  • 5
  • 18
1
2 3
17 18