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

Testing TypeScript modules with package dependencies

I have a class written in TypeScript: import * as uuid from "uuid"; export class IdGenerator { getId() { return uuid.v4(); } } This has a dependency on the uuid package that I have installed with npm. I deploy this with other code…
fractor
  • 1,534
  • 2
  • 15
  • 30
0
votes
1 answer

How do you reference and execute chutzpah.console.exe installed via nuget in your gulpfile

Given you have installed chutzpah for a solution via: nuget install-package chutzpah for a given project. and you have installed jasmine via: npm install --save-dev jasmine and you want to use gulp-chutzpah to execute jasmine tests. how do you…
jparram
  • 804
  • 8
  • 24
0
votes
1 answer

Chutzpah unable to find reference when coverage is turned on

I'm having an issue whereby, if the tests are run with coverage off - the tests run fine, no issues. However, as soon as I turn the coverage on I get the following error: ReferenceError: Can't find variable: PushNotificationView Test file ///…
ediblecode
  • 11,701
  • 19
  • 68
  • 116
0
votes
2 answers

Chutzpah, Error: Called start() while test already started running, when I "Run JS Tests" on a simple html file

I've installed the 2 Chutzpah Visual Studio add-ins (using VS 2015), the Context Menu and Test Explorer extensions. I can right click the test.js file and it runs successfully. I can run the test from Test Explorer and the test runs successfully. …
Byron
  • 23
  • 5
0
votes
0 answers

JS Tests in Visual Studio fail with Chutzpah but succeed when executed in browser

I am facing a problem with Chutzpah in Visual Studio 2017. I have some Tests for my jQuery Code, which run successfully in the Browser (Firefox, Edge & Chrome), but fail when running them in VS with Chutzpah. First of all my setup: Jasmin Version…
Torben
  • 438
  • 1
  • 7
  • 22
0
votes
1 answer

Testing CShtml files in MVC project using jasmine

I would like to test my javascript code (that includes jQuery library) that is in my CShtml file at a MVC project that runs on visual studio 2015. I know that testing on js files can be done using jasmine. Can I test a cshtml file using…
avishle
  • 63
  • 1
  • 9
0
votes
1 answer

what is difference between chutzpah reference path and typescript reference path

In my work I have seen there is a test project for typescript project(with ts file app1.ts).It is using Chutzpah as test runner.In its config file it has reference path to the the js file generated by ts compiler(app1.js).In test project there is a…
Nanda
  • 21
  • 5
0
votes
1 answer

Syntax "Number.isFinite" don't work with Chutzpah

It doesn't work to use syntax code "Number.isFinite" in relation to Chutzpah. Is it supposed to be? Thank you!
HelloWorld1
  • 13,688
  • 28
  • 82
  • 145
0
votes
1 answer

Two Different Chutzpah Visual Studio Extensions

What is the different between "Chutzpah Test Runner Context Menu Extension" and "Chutzpah Test Adapter for the Test Explorer"? Info: The Chutzpah is from Extensions in Visual Studio Thank you!
HelloWorld1
  • 13,688
  • 28
  • 82
  • 145
0
votes
1 answer

Running Angular JS UnitTests with Karma and Chutzpah

Can I run my AngularJS Unit Tests with Karma and Chutzpah? Is that possible? I am coding my Unit TestCases in Visual Studio and have already installed Chutzpah so whether I can install Karma also? I need Karma as I need to include some template urls…
Shan
  • 2,822
  • 9
  • 40
  • 61
0
votes
2 answers

Error testing Angular services with Jasmine/Chutzpah

I'm trying to test my AngularJs services using Jasmine but I keep getting all kinds of errors. So I tried to create a very basic Sum service to test it and the errors keep on coming. This is the AngularJS service I'm trying to test: …
Diuter
  • 85
  • 6
0
votes
0 answers

Chutzpah tests discovered in wrong directory with Visual Studio 2015

I have recently added a new user onto my domain and swapped over to use that continue developing a project using git. I've just re-run the unit tests and chutzpah is looking in the old source directory for js…
Liam
  • 5,033
  • 2
  • 30
  • 39
0
votes
1 answer

Jasmine unit test file dependency load order (chutzpah)

we're using chutzpah with VS2015 to test jasmine javascript tests which is working just great with VS2015 context menu and as a console app. However I've run into some issues where by if example1.js uses example2.js but chutzpah loads example2.js…
Anthony Joanes
  • 477
  • 4
  • 17
0
votes
1 answer

Exclude angular spec files from testing - Chutzpah

I am writing test cases in Jasmine and using Chutzpah to run them , I want to include a certain spec files for testing and exclude remain all other spec files or vice-versa I.e exclude all unneeded spec files . I can't delete the spec files which I…
jish2512
  • 91
  • 1
  • 1
  • 5
0
votes
1 answer

Jasmine, Chutzpah Error: ReferenceError: Can't find variable: require

i try to write unit tests for my Angular 2 App. I use Jasmine, Chutzpah in Visual Studio 2015. When the test dont have any dependencies or requirements then the test works. But when the test have one, then the Test will not be started. In the output…
user3541236
  • 171
  • 2
  • 12