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

How do I trigger a click event in a unit test for an Angular directive

I have an Angular app (running from an ASP.NET MVC project.) In this app, I have a directive with the following link function: link: function (scope, element, attrs, formCtrl) { element.bind('click', function (event) { …
taylonr
  • 10,732
  • 5
  • 37
  • 66
0
votes
0 answers

chutzpah with requirejs and sinon

I am trying to run chutzpah with Qunit requirejs and sinon. I have defined the chutzpah json like this: { "Framework": "qunit", "TestHarnessReferenceMode": "AMD", "TestHarnessLocationMode": "SettingsFileAdjacent", "References": [ …
Haim_t
  • 37
  • 5
0
votes
0 answers

What is the best practice for unit testing AngularJS modules kept in a self executable anonymous funcitons

I am looking for suggestions about the best practice around here in this scenario. I have created an angularjs SPA application and looking for building a unit test framework for it. I observed that I am not able to get the app object of the module…
0
votes
0 answers

Read file that is added as link with t4 template

I have a project A in Visual Studio where I need some files from project B (to keep a single point of definition). I use these files in project A for Chutzpah to include the dependencies for the tests, for example jQuery. This works by adding jQuery…
devqon
  • 13,818
  • 2
  • 30
  • 45
0
votes
2 answers

Chutzpah Typescript compiler support for ...any params

I'm using Chutzpah 3.2.1 command-line in my TeamCity installation, to execute some Typescript unit tests. I'm getting this error when it tries to run: [JavaScript Tests] Error: Error in [JavaScript runtime error]: [11:31:03][JavaScript Tests]…
Simon Green
  • 1,131
  • 1
  • 10
  • 28
0
votes
1 answer

Is it possible to take screenshots inside Chutzpah?

Is it possible to take screenshots inside Chutzpah? I can't seem to get to the underlying phantom object. I understand now looking through the chutzpahRunner.js that the test itself is called via page.open() so appears to be in a different…
Alex KeySmith
  • 16,657
  • 11
  • 74
  • 152
0
votes
1 answer

Duplicate Entries in code coverage report

I've added few JS test files and added below mentioned references. In some files I've added smaller case letters in some JS files camel case one.(as mentioned below) But while running code coverage from visual studio, the report contains two entries…
Narendra V
  • 595
  • 1
  • 8
  • 21
0
votes
1 answer

VS 2012 Chutzpah Adapter and Jasmine Javascript unit testing integration

I am working to include JavaScript unit testing into an ASP.NET project that I am working on. I have installed the Chutzpah Adapter and Jasmine. After carefully following the direction provided by this Ryan Cromwell video for installing and setting…
Gary O. Stenstrom
  • 2,284
  • 9
  • 38
  • 59
0
votes
1 answer

Recompiling Chutzpah with latest TypeScript bits?

I need a way to test my TypeScript files that integrates with Visual Studio's Test Explorer. For that I found an extension that does it, Chutzpah [codeplex]. The problem is that the current version of the extension does not work with TypeScript…
BrunoLM
  • 97,872
  • 84
  • 296
  • 452
0
votes
1 answer

Knockout Error with QUnit and Chutzpah

I have an error I'm getting when I run my JavaScript tests in browser using QUnit and Chutzpah. The error I'm getting is "Uncaught TypeError: Cannot read property 'nodeType' of null knockout-2.2.1.js:12" has anyone experienced this error before…
nobody
  • 7,803
  • 11
  • 56
  • 91
0
votes
1 answer

Chutzpah console runner failing silently

Just started to get Chutzpah with require (which was great fun). The problem I currently have now is that if there is a javascript error it seems to fail without picking any of the tests up. However, when run in debug mode it seems to pick them up…
mat-mcloughlin
  • 6,492
  • 12
  • 45
  • 62
0
votes
1 answer

Resharper Ajax setting unsafe header

I'm getting a javascript exception from something being set up in ResharperAjax.cs, but can't figure out how to get around it The lines that seem to be causing the issue in ResharperAjax.cs are: request.open("GET", url,…
Maixy
  • 1,151
  • 2
  • 12
  • 27
0
votes
1 answer

Chutzpah Test Adapter issue using ExtJS - Works in browser. Not in IDE

Trying to use Chutzpah with Jasmine to unit test an ExtJS application. Tests are detected and appear in the test explorer in VS 2012. The attached sample passes when running in the browser. However, running it the IDE, my store test fails. Now…
Joey
  • 477
  • 5
  • 10
0
votes
1 answer

PhantomJS Cookies

I'm trying to run some QUnit test cases with phantomJS and chutzpah console. I'm having difficulties communicate with the phantomJS cookies. My test case runs perfectly with the browser communicating with the but not with phantomJS as it gives an…
0
votes
1 answer

QUnit isn't running manually namespaced setup code like I would expect?

In stuff.js: function init() { return "works"; } (function(ParentNamespace) { ParentNamespace.MySubNamespace = {}; })(window.MyNamespace || (window.MyNamespace = {})); In my test JS file: ///
Patrick Szalapski
  • 8,738
  • 11
  • 67
  • 129
1 2 3
17
18