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
3
votes
1 answer

how to launch URL link in android emulator browser from windows

I have question. I want to automate testing in android browser. My requirements: I have JS Test Driver maven project which needs to be tested in android browser. So what I want to do is in maven pom.xml file instead of pointing to chrome…
user2255985
  • 55
  • 1
  • 1
  • 4
3
votes
1 answer

webpage.open() never calls callback

I'm using PhantomJS 1.8.2 to run some Jasmine unit tests using JsTestDriver. The tests run fine using Chrome, but about half the time when using PhantomJS, the test result is that no test cases were found. I've narrowed the issue down to PhantomJS…
nwinkler
  • 52,665
  • 21
  • 154
  • 168
3
votes
1 answer

Static files not served by js-test-driver

I'm using js-test-driver to run some tests and would like to test some code against an html document. I was hoping to load this into the current document in an iframe and test my code against it but I'm having trouble even getting the file. My…
AJP
  • 26,547
  • 23
  • 88
  • 127
3
votes
1 answer

Testing using JsTestDriver + RequireJS + QUnit

After much searching and quite a bit of trial it seems to me that the chosen combination of tools just doesn't have it. I would LOVE to be mistaken. Well, the technological stack is as mentioned in the title. To expand, Backbone for all…
ZenMaster
  • 12,363
  • 5
  • 36
  • 59
3
votes
3 answers

running jstd-maven-plugin tests without a browser

I've got jsTestDriver up and running, and I use jstd-maven-plugin to run the tests during a build. The plugin needs a browser to be specified in order to work though, and I'd like to use something like rhino or htmlunit that won't actually launch…
2
votes
1 answer

Permission Denied When Trying to use --browser in JSTestDriver on OSX 10.6

I started playing around with JSTestDriver tonight and got it to work without too many issues. I attempt use the --browser switch to have it autocapture chrome or firefox on my local system here; however, it always threw an error saying "permission…
JamesEggers
  • 12,885
  • 14
  • 59
  • 86
2
votes
0 answers

Polymer test fails with "chrome failed to maximize"

I create a POLYMER 3 test to test an element. If I run the test by command line in chrome, I get this message gefore the test fails: chrome 71 Beginning tests via…
michael-mammut
  • 2,595
  • 5
  • 28
  • 46
2
votes
1 answer

Is it a bug in SonarQube's JavaScript plugin that it doesn't pick up Surefire test results of tests that are in a subdirectory?

I have a Surefire results directory with 2 files: TEST-Chrome_4202311135_Windows.dashboard.MonkeyTest.xml and TEST-Chrome_4202311135_Windows.PersonTest.xml. Thus, my tests have the following directory structure: -tests -PersonTest.js …
SBel
  • 3,315
  • 6
  • 29
  • 47
2
votes
2 answers

Does there exist a Karma Reporter that generates JS Test Driver format results so that SonarQube can pick them up?

Our team writes JavaScript unit tests using Jasmine. We are setting up codebase analysis in SonarQube. The SonarQube JavaScript plugin documentation says that it will use unit test results only in the format that is generated by JS Test Driver. I'm…
SBel
  • 3,315
  • 6
  • 29
  • 47
2
votes
2 answers

JsTestDriver and legacy javascript. To convert or not?

I inherited a legacy JavaScript library simply written as a list of functions as follow: function checkSubtree(targetList, objId) { ... } function checkRootSubtree(targetList, rootLength, rootInfo, level) { ... } To test it with…
Giorgio Vespucci
  • 1,586
  • 3
  • 18
  • 30
2
votes
2 answers

Compiling JS-Test-Driver Plugin and Installing it on Eclipse 3.5.1 Galileo?

I downloaded the source of the js-test-driver from: http://js-test-driver.googlecode.com/svn/tags/1.2 It compiles just fine, but one of the unit tests fails: [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.012 sec [junit] Test…
leeand00
  • 25,510
  • 39
  • 140
  • 297
2
votes
1 answer

Javascript Unit Testing with Javascript-Test-Driver

Recently a new framework for Javascript unit testing has been released. HERE Can anyone points me to some sample examples which I can look at to? This seems to be an excellent framework; considering that it has command line support and integration…
Priyank
  • 14,231
  • 18
  • 78
  • 107
2
votes
0 answers

"TypeError: Cannot read property 'launched' of null" in netbeans JSDT running jasmine tests

I have setup a new ExtJs Project and want to test it with Netbeans and JSDT + adapter and an html test runner. This is my file structure: root - config -- jsTestDriver.conf - public -- application --- controller, model, store, view --…
WitteStier
  • 381
  • 3
  • 13
2
votes
1 answer

QUnit and Sinon.js under continous integration

I am using QUnit+Sinon.js which works well natively. The problem was occured when I tried to build it into a continous integration process. I am using js-test-driver framework to be able to run it in continous integration enviroment. In the past I…
Iamisti
  • 1,680
  • 15
  • 30
2
votes
1 answer

Run jsTestDriver in WebStorm for Jasmine + Backbone

I am writing tests in Jasmine for a Backbone application and I want to know what proportion of the code my tests cover. For this goal I want to use jsTestDriver. But I have a problem: I created a config file and added all resources there, but when I…
oleg_star
  • 246
  • 2
  • 11
1 2
3
8 9