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

Chutzpah throws exception in TFS Build: 'executor://chutzpah-js/': Method not found: 'System.String .. get_SolutionDirectory()'

This is the exception: An exception occurred while invoking executor 'executor://chutzpah-js/': Method not found: 'System.String Microsoft.VisualStudio.TestPlatform.ObjectModel.Adapter.IRunContext.get_SolutionDirectory()' Everything else is fine and…
Khanh TO
  • 48,509
  • 13
  • 99
  • 115
1
vote
1 answer

How to load a public function using QUnit and TypeScript

I am using QUnit to test my typescript code and everything is fine when I run a simple example like this: http://thomasardal.com/testing-typescript-with-typescript-using-qunit-and-chutzpah/ But my nightmare start when I try create unit tests for my…
Rolando
  • 752
  • 1
  • 14
  • 41
1
vote
1 answer

is there a way to execute phantomJS statements in chutzpah?

I'm running some Qunit tests to test a framework. I'm not able to fetch the cookies from phantomJS as my test hangs there. It's not able to read cookies. I tried to fetch the fetch phantom cookies with phantom.cookies function, yet chutzpah doesn't…
1
vote
2 answers

Can chutzpah run qunit tests from a url?

Can Chutzpah run qunit tests from a url? I need a lot of server-side injected markup and json data in my qunit tests, so I like to run the test suite within my visual studio project on localhost instead of mocking tons of test data in my test.js…
fbuchinger
  • 4,494
  • 2
  • 30
  • 31
1
vote
0 answers

Chutzpah Test Adapter not displaying results

I cannot get the Visual Studio 2012 Adapter to work. I'm only posting this question after several unsuccessful hours trying to get it to work. The .html file is being generated correctly but the results don't show. The context menu runner works - it…
Matthew Blott
  • 209
  • 3
  • 10
1
vote
3 answers

TypeScript - jasmine - Chutzpah - AMD - Visual Studio 2012

I can't get testing of TypeScript in VS using jasmine/Chutzpah to work with AMD. Sample.ts: export class Sample { constructor(public name: string) { } } Simple.ts: /// ///
1
vote
2 answers

How to write a Test method in Javascript for an AjaxCall to the server?

working ajax call code is given below $('#callControllerBtn').click(function () { currentlySelectedRow = grid.select(); sendProductIDToController(currentlySelectedRow); }); function sendProductIDToController(currentlySelectedRow) { …
1
vote
0 answers

JavaScript test fails in Visual Studio 2012 test explorer but succeeds in resharper

I've come across a very annoying problem writing my JavaScript test for the present project I'm in. Chutzpah Test Adapter for Visual Studio 2012 is installed (uninstalled and installed once a again) All other JavaScript tests runs smoothly except…
0
votes
1 answer

ERR_EMPTY_RESPONSE when running unit tests using Chutzpah in Visual Studio 2022

A recent update to Visual Studio saw the Chutzpah Unit Test Runner no longer running the tests. Using the context menu VS extension, it seems like the Kestrel web server is not initiated, hence the ERR_EMPTY_RESPONSE error. Visual Studio 2022 does…
NeilC
  • 1,380
  • 1
  • 17
  • 36
0
votes
0 answers

chutzpah test explorer adapter in VS 2022 is including test cases from some dependency project as well. How do I filter that out?

I have Qunit test cases written in my project. I am using chutzpah test explorer adapter to manage those test cases in VS test explorer. I can see all test cases from my project and also test cases from dependency project. following is my…
0
votes
1 answer

Running chutzpah on server using chrome

I have Java Script project where I am using Chutzpah and intend to run in server. I have tried changed to chrome in local and it works fine except a few test cases. Do we need to define the browser path to run in server?
0
votes
0 answers

VS JavaScript debugging - break only on breakpoints?

How do I stop VS 2019 breaking on javascript/typescript exceptions and only break when it hits my breakpoints? I've unselected JavaScript Runtime Exceptions but still it keeps breaking. Background: I'm trying to get Chutzpah+Jasmine going in my…
Etherman
  • 1,777
  • 1
  • 21
  • 34
0
votes
0 answers

How to debug Chutzpah JsonReaderException

I'm running Chutzpah on a very large file tree of unit tests owned by multiple teams. While doing a "chutzpah .", I run into this exception: Chutzpah Error: Newtonsoft.Json.JsonReaderException: After parsing a value an unexpected character was…
Elliott Beach
  • 10,459
  • 9
  • 28
  • 41
0
votes
1 answer

Chutzpah doesn't detect jasmine tests in Typescript with AMD modules

We are trying to figure out a approach for UI testing and felt chutzpah will be a nice option. I wrote jasmine tests using typescript and requirejs. Chutzpah is able to detect the sample tests which doesn't import any external modules. But when i…
0
votes
0 answers

How to cover the Js code inside the Jquery using chutzpah

Writing test case using chutzpah. Code inside the $(document).ready(function () { is not running. How to cover the js code inside the Jquery ready function?
Gobika Krishna
  • 69
  • 1
  • 2
  • 6