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

Browser compatibility testing in automated unit tests for new angular framework codes

Is it possible to test the browser compatibility using automated JavaScript unit tests? I have to test my angular 6 code for some dom test cases in different browser scenarios. This unit tests should run in CI build.
Techie
  • 53
  • 8
0
votes
1 answer

Chutzpah & Jasmine tests - upgrade to TFS 2017 has broken tests?

We've been running javascript tests using jasmine and chutzpah for a while now. We just upgraded to TFS 2017. Our C# test run fine, but javascript tests are no longer being found by the TFS builds. (They continue to be discovered and run from…
Jim
  • 192
  • 1
  • 11
0
votes
0 answers

Testing whether a form is submitted twice using QUnit

I am trying to understand the behavior of QUnit, using Chutzpah in Visual Studio. The following JQuery plugin should prevent double submissions of a form: $.fn.preventDoubleSubmit = function () { $(this).submit(function (e) { if…
Dr. Thomas C. King
  • 993
  • 2
  • 15
  • 28
0
votes
1 answer

How can we discover what version of Jasmine Chutzpah is tied to?

Since Chutzpah is tied to a specific Jasmine version, is there a way of finding which version it's tied to? The command line options don't reveal any --jasmineVersion-like flag. I looked at the package.json file and see: "devDependencies": { …
pushkin
  • 9,575
  • 15
  • 51
  • 95
0
votes
1 answer

How to get a Chutzpah Test Adapter to run my QUnit tests on an Azure DevOps pipeline build?

It just works on my machine - Prior to using Azure DevOps, I simply installed this Chutzpah VSIX 'Test Adapter' add-on in order to run my QUnit tests. My test.js uses Chutzpah's reference syntax.. so Chutzpah will surface the test in the IDE's Test…
bkwdesign
  • 1,953
  • 2
  • 28
  • 50
0
votes
0 answers

Chutzpah doesn't recognize any tests written in mocha and typescript - module system is UMD

I got mocha working with typescript when executing "npm test". However Chutzpah refuse to recognize any tests. My chutzpah.json contains: { "Framework": "mocha", "EnableTracing": true, "TraceFilePath": "./trace.log", "Compile": { …
0
votes
1 answer

Code coverage when using Html test file

I want to generate Jacoco report for code coverage so I can included in my TFS build as described here https://www.linkedin.com/pulse/enabling-javascripttypescript-code-coverage-brett-jacobson?trk=portfolio_article-card_title. For that, I used…
Mhd
  • 2,778
  • 5
  • 22
  • 59
0
votes
1 answer

How to Setup Chuztpah with TFS 2017

I'm trying to include code coverage report into TFS build for my C#/TypeScript project. So I did the same as this article. But I'm getting TFS build error because report file was not found because there is no build task to create that report. So my…
Mhd
  • 2,778
  • 5
  • 22
  • 59
0
votes
1 answer

Can I execute unit test EcmaScript 6(2015) code on Headless Browser like Phantom Js ? If no, Can you mention any other way to achieve this?

I am unit testing angular application. I couldn't able to execute unit tests of code which are written using ES6 on Chutzpah. What could be the possible solution? I need a stable way to achieve this.
Krishna
  • 154
  • 4
  • 14
0
votes
0 answers

How to do tests AngularJS with Jasmine and Chutzpah?

I'm new to AngularJS testing with Jasmine. I'm little bit lost with following things. I know Jasmine is used for unit testing. But can someone elaborate that more? And I also want to know how Jasmine and chutzpah work? I found several tutorials…
Pegasus
  • 88
  • 2
  • 9
0
votes
0 answers

CodeCoverage using Chutzpah for AngularJS TestCases

I have been using Chutzpah to see the CodeCoverage for my TestCases My question is whether my code coverage command should also include those UnitTestCases? For example if there are 100 js which has the testcases whether they should be included as…
Shan
  • 2,822
  • 9
  • 40
  • 61
0
votes
0 answers

What version of Jasmine uses Chutzpah? Cannot use spyOnProperty

I just added the latest versions of both Chutzpah and Jasmine NuGet packages to my project. Besides, I installed the two available Chutzpah Visual Studio extensions (VS2015). I am trying to use the Jasmine function "spyOnProperty", which can be…
Jaime
  • 1,110
  • 1
  • 8
  • 14
0
votes
0 answers

Code coverage results not appearing in VS 2013 using Chutzpah

I have configured Chutzpah nuget package in VS 2013 Premium. I am using jasmine to write my test cases, I am able to see the tests are running on the Unit test windows but I am not able to see the Code coverage results tests and code coverage for my…
sajesh Nambiar
  • 689
  • 2
  • 10
  • 25
0
votes
0 answers

Chutzpah.json reference path not working - File too long message

I am unable to run the testcases with Chutzpah.json as it throws me a file too long error message for some reason in the console output I have all my unit testcases in UnitTesting Project which is in root folder which also contains WebPortal…
Shan
  • 2,822
  • 9
  • 40
  • 61
0
votes
1 answer

Running unit tests with chutzpah on real browser

Is there a way to setup Chutzpah to run test with other browser than phantomjs, preferably real browser, not headless. I'm using chutzpah as Visual Studio extension and runner 4.2.1 for CI Please let me know if more information needed.
697
  • 321
  • 4
  • 16