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

unit testing $('#modalId').modal('show'); undefined

I am new to unit testing as well as in angularjs. When I unit test my modal if they are showing or not, an error was returned: > TypeError: undefined is not a constructor (evaluating > '$('#modalId').modal('show')') How can I unit test my modals ?
CMA
  • 2,758
  • 5
  • 28
  • 40
0
votes
1 answer

Receiving error 'Can't find variable:require' when using Chutzpah/PhantomJS in Visual Studio 2015

First: I have looked at a number of tickets that address similar issues, but I feel that mine is different is a particular respect: I have just installed the Chutzpah test runner in Visual Studio 2015, and I don't know what to expect from that test…
Philip Raath
  • 460
  • 3
  • 18
0
votes
1 answer

Difference between Chutzpah & Karma test runners

I was looking in to the test runners and i was confused with these two of them,many people were saying karma is the best but as these two are just runners to run the jasmine code written,what is there specifical about karma? What exactly is the…
divyameher
  • 134
  • 8
0
votes
0 answers

Chutzpah {Transforms Setting} :-.Net Framework Implementation

I am trying to get my angular + JS Coverage report in LCov Format.So tried to implement it as below:- { "CodeCoverageExcludes":   [                  "*/Tests/**/*.js",         "*/Web/App_Themes/test*.js", …
Shian JA
  • 848
  • 4
  • 15
  • 52
0
votes
0 answers

Why does Chutzpah only see the tests if they listed under "References" section and doesn't if they under "Tests"

I have a quite big solution with a few web module projects (they are kind of modules and they are copied into a common project which is the SPA). I started to write jasmine-typescript tests against my angular 1.5.8 code. In order to spare copying…
AndrasCsanyi
  • 3,943
  • 8
  • 45
  • 77
0
votes
1 answer

How to setup a Jasmine / Chutzpah unit tests project running TypeScript files?

I have tried setting up a unit-tests project to cover front-end code in TypeScript with Jasmine and Chutzpah, but have a hard time figuring out what I'm doing wrong. I have created a sample ASP.NET projet in which I have extracted and included the…
Maxime Labelle
  • 3,609
  • 2
  • 27
  • 48
0
votes
1 answer

chutzpah not importing referenced file in jasmine test

I have a simple test file "test.js" /// describe("value is true", function () { var api = new Api(); describe("audio", function () { it("returns white space when text is null", function () { …
Pato Loco
  • 1,205
  • 1
  • 13
  • 29
0
votes
1 answer

How to Make Modification in Chutzpah Reports used Js Code Coverage

I am trying to use Chutzpah for Js Code Coverage.But now the problem is, i am getting the report in HTML Format but i need it in XML Format so in there any way to convert it. Or is there any other Open Source toll or extension which i can use for Js…
Shian JA
  • 848
  • 4
  • 15
  • 52
0
votes
1 answer

Chutzpah nuget package - how to use it with VS2015 javascript file-what is the procedure

I a web app developed in asp.net, angularjs, typescript and a unit test project in Visual Studio solution. i have written the unit test for my javascript files, I read about chutzpah, i learned that it could be used to run the unit test in visual…
shyam_
  • 2,370
  • 1
  • 27
  • 50
0
votes
1 answer

Chutzpah - getting "Error: One or more errors occurred." in chutzpah.json

I am working on a .NET project and using Angular 1.5 with TypeScript at client side. For test case execution and code coverage I am using Jasmine + Chutzpah. Chutzpah is integrated with Visual Studio 2013. In my project number of client side test…
Gagan Bajaj
  • 169
  • 1
  • 16
0
votes
0 answers

Jasmine + Chutzpah: Expected undefined to be equal

I'm new in this angular world, so sorry if this is so basic, but I'm not getting it I'm having this error whenever I try to run my jasmine tests My controller is defined this way: angular.module('Module',[]).controller('GACtrl', ['GASvc', '$scope',…
0
votes
1 answer

Decouple Knockout dependencies in Jasmine unit tests

I am introducing javascript unit tests to my company's application. I've worked predominantly with AngularJS, but their framework of choice is Knockout. The code is relatively modular in design (thanks to Knockout), so I assumed it would be easy…
cidthecoatrack
  • 1,441
  • 2
  • 18
  • 32
0
votes
1 answer

Why Chutzpah does not recognize all TypeScript tests?

I have a project with the following chutzpah.json: { "Framework": "jasmine", "TestHarnessReferenceMode": "AMD", "TestHarnessLocationMode": "SettingsFileAdjacent", "EnableTestFileBatching": true, "References": [ { "Path":…
XtianGIS
  • 967
  • 16
  • 39
0
votes
2 answers

Can't find variable: require - Jasmine Unit testing using Chutzpah

I'm really new to Churtzpah and Jasmine. I have been trying to run tests using Chutzpah. I'm using Jasmine, Typescript , Chutzpah , angular2 to write unit tests. Whenever i try to run the tests , I see that my tests are being detected . My…
sujay kodamala
  • 317
  • 1
  • 5
  • 17
0
votes
1 answer

using chutzpah and jasmine with typescript and systemjs

I am having trouble getting an import working in a jasmine unit test that is written in typescript. Chutzpah is throwing an error on the import statement - which in js gets translated to a define import {fakeclass} from…
MIantosca
  • 833
  • 1
  • 10
  • 33