Questions tagged [jsunit]

JsUnit is an open source Unit Testing framework for client-side (in-browser) JavaScript

JsUnit is an open source Unit Testing framework for client-side (in-browser) JavaScript. It is essentially a port of JUnit to JavaScript. Also included is a platform for automating the execution of tests on multiple browsers and multiple machines running different OSs.

JsUnit GitHub page

26 questions
1
vote
1 answer

Public Test Swarm for JSUnit testing?

I came across Test Swarm which jQuery uses for running JSUnit (Qunit) tests across all browsers (real ones). I can download and install test swarm on my machine and get loads of VMs fired up to load and connect all browsers, but I was wondering if…
Sparsh Gupta
  • 1,863
  • 4
  • 17
  • 21
0
votes
1 answer

JsUnit and debugging

I'm trying to use JsUnit for testing. One of my tests failed, and now I want to debug the function I tested (while it's running on the test). What's the easy way to do it? Usually I just use Chrome's debugger/Firefox's Firebug, but I do this on a…
Gadi A
  • 3,149
  • 8
  • 30
  • 52
0
votes
1 answer

Runnig JSUnit tests without a test suite

Is there a way to run JSUnit tests without specifying test suite file. I want to run all the tests in a particular package so that one does not have to remember to add any new test to the existing suite.
Karthik B V
0
votes
5 answers

Getting Firefox 3 to work with JSUnit

Thus far this is what I've tried, I'm using Firefox 3.07 Make sure in about:config that the property browser.cache.check_doc_frequency is set to 1 which the browser interprets as "check for a new page every time". Make sure in about:config that the…
leeand00
  • 23,306
  • 34
  • 125
  • 265
0
votes
2 answers

Test for Bound event using JSUnit?

How can I test to see that an event handler is bound to a node using JSUnit? Here's what I have: var mynode = document.getElementById( "mynode" ); assertNotNull( mynode ); MyLibrary.attachEvent( mynode, "click", function( ){ return true; }…
KeatsKelleher
  • 9,063
  • 4
  • 41
  • 47
0
votes
3 answers

Error using JsUnit with Hudson

I've just started using the JsUnit plugin with Hudson. The JsUnit tests are passing, but when the JsUnit plugin runs against the test output it's creating this error: [xUnit] [ERROR] - Couldn't split JUnit testsuites for the file…
0
votes
1 answer

Display object details in unit test

Using JsUnit, I am trying to make use of the assertEquals function, such that when a suite of tests fail, they will print useful information as to why they failed. My current situation is such: let actual = some_method_call (); let expected = [ …
BlackVegetable
  • 10,734
  • 6
  • 45
  • 73
0
votes
1 answer

JsUnit throws a Exception 'bout undefined function

i got a problem with jsunit-maven2-plugin. . src/test/resources/javascript/test.js
Grim
  • 4,939
  • 8
  • 46
  • 97
0
votes
0 answers

Hudson unable to open browser using jsTestDriver

Trying to run a test case that pops up an alert window. this is not working in hudson but the same working fine in command prompt Error: It shows a window stating "Interactive Service Detection" and says the program is not fully compatible with…
Selwin
  • 11
  • 2
0
votes
1 answer

How to get Jenkins to send JsUnit report if a failure occurs?

Below is the segment of pom.xml that Jankins runs but it doesn't send in the e-mail the error that occurred. Did anybody get this to work. de.berlios.jsunit
SBel
  • 3,045
  • 4
  • 25
  • 44
0
votes
4 answers

Jasmine testcase

I've wrote a javascript method that changes the value of a suggestbox on a click of an image. function startDestinationF(a) { var startDestination = document.getElementById('startDestination'); startDestination.selectedIndex = (a);} Now i have to…
Alex Baur
  • 155
  • 2
  • 10
1
2