Questions tagged [js-test-driver]

js-test-driver is an open source JavaScript unit tests runner written in Java.

Js-test-driver, a project started at Google, is able to run from command line and reports results to the standard output. As a result, it is possible to fully automate JavaScript tests and run them on a continuous integration server.

The goal of JsTestDriver is to build a JavaScript test runner which:

  • easily integrates with continuous builds systems and
  • allows running tests on multiple browsers quickly to ease TDD style development.

Project page

122 questions
0
votes
1 answer

Run js-test-driver Eclipse plugin in IE8 document mode when having IE9 installed

I want to use the Eclipse plugin of js test driver to execute my tests in IE. I have IE9 installed but want the tests to run in IE8 document mode because this is what the app we are developing is running in. So is there any way to start the…
uan
  • 1
  • 1
0
votes
1 answer

How to run js-test-driver IE9 and document mode IE8

How to run js-test-driver IE9 and document mode IE8 ? Is it possible to do anything like this with meta tags or is there any config switch for this? We dont want to run in compability mode.
rubin
  • 687
  • 2
  • 7
  • 12
0
votes
2 answers

js-test-driver - How to get name of the running Test and TestCase in the setUp method?

I would like to know how we can get the name of the running test, name of the test case, and test result (whether test has passed or failed). Following is the code example: MyTestCase= TestCase("MyTestCase"); MyTestCase.prototype.setUp =…
zataak
  • 1
  • 2
0
votes
1 answer

Testing embedded javascript

I am currently trying to test some javascript code that is embedded in an html file. I do understand that it would be easier to test if it was external. That is not an option for me. Also I am currently using JsTestDriver as my framework. Other…
0
votes
1 answer

Enable JsTestDriver Failed Test Messages and fix FailureException error?

I'm following along with Test Driven Javascript Development and just finshed setting up jstestdriver. I'm receiving odd errors and failed test messages when running failing tests, for example: TestCase("ArrayTest", { "test array splice should not…
mcabrams
  • 686
  • 1
  • 6
  • 23
0
votes
2 answers

Can a qunit Tests case be written in ecplise?

Recently i have given a task of Qunit with Eclipse plugin.I could find the information regarding the tests cases written in Qunit and the conversion and building the solution for it in JS-test runner using Quint-Adaptaer. But My Question is do i…
0
votes
1 answer

Provide external javascript dependency for JsTestDriver

I want to test for example A.js which has dependecies from B.js which is stored in JAR archive. How can I configure the JSTestDriver to read dependencies from B.js?.
Arsen Alexanyan
  • 3,061
  • 5
  • 25
  • 45
0
votes
1 answer

Event listeners & js-test-driver?

My JS gets loaded after the DOM is ready. Once the DOM is ready, the JS checks certain aspects of the environment (window dimensions etc.), binds event listeners to specific elements and then, finally, runs. How do I set this up in js-test-driver? I…
tonedef
  • 38
  • 4
0
votes
1 answer

Get LCOV compatible output from JSCover/JSCoverage coverage.xml or jscoverage.json

Summary I've recently switched from using Google's JsTestDriver to Testem but miss LCOV HTML Code Coverage Reports, is there a way to convert JSCover output into LCOV format, so I can use genhtml to create reports like these. Detail I'm working from…
Jamie Mason
  • 4,159
  • 2
  • 32
  • 42
0
votes
3 answers

I'm new to TDD backbone with jasmine-sinon. change event in backbone unit test

I'm making a test for event change to a selectbox view in backbone which is 'should provide the correct path to router.navigate when changed'. this is the scenario, If I select a value in the dropdown, it should redirect to the correct url. this is…
Mox
  • 19
  • 4
0
votes
2 answers

Using jsTestDriver and Jasmine in Sublime Text 2

Is there a way to configure Sublime Text 2 to use Jasmine and jsTestDriver when writing JavaScript?
0
votes
1 answer

Recursively looking up files in jsTestDriver

Has any one figured out a way around jsTestDriver's inability to recursively lookup files for testing from config. Its documented here: http://code.google.com/p/js-test-driver/issues/detail?id=6 Currently we are not able to give something like…
airboss
  • 1,767
  • 3
  • 16
  • 21
0
votes
1 answer

Can't run Chrome from Jenkins with Cygwin

I'm testing JsTestDriver with Jenkins locally on Windows XP with Cygwin (at the front of my system Path). Jenkins calls a .sh script which contains the following: java -jar "D:\Tools\jstestdriverexample\JsTestDriver-1.3.4.b.jar" --port 9876…
Adam Lynch
  • 3,341
  • 5
  • 36
  • 66
0
votes
1 answer

JsTestDriver firefox browser crash

I'm just starting out with JsTestDriver and I've created very simple demo code to see if I have configured my environment correctly. However about 40-50% of the time I'm getting the following error when Firefox is launched (via JsTestDriver)…
Nick
  • 21
  • 5
0
votes
1 answer

Mismatch versions when using QUnit with JSTestDriver adapter (QUnitAdapter.js)

I'm trying to run unit tests written in QUnit using jsTestDriver. I'm getting "ReferenceError: equal is not defined". Checking the source code shows that the adapter (Qunit->jsTestDriver) QUnitAdapter.js supports the equals method: window.equals =…
shex
  • 326
  • 5
  • 13
1 2 3
8
9