Top "Qunit" questions

QUnit is a JavaScript unit testing framework, used by the jQuery project to test its code and plugins, but capable of testing any generic JavaScript code (both on the client and on the server).

how to unit test contents of a callback function with sinon.js

how does one test a code inside a callback function using sinon.js framework for mocking? JSFiddle: http://jsfiddle.net/…

javascript unit-testing mocha.js qunit sinon
Unit testing AJAX requests with QUnit

We are trying to implement QUnit JavaScript tests for a JS-heavy web app. We are struggling to find a way …

javascript unit-testing qunit
Qunit parameterized tests and mocking

I have two questions: Can you have parameterised unit tests in qunit? How do you do mocking with qunit e.…

javascript qunit
How can I delay document.ready until a variable is set?

I am doing QUnit testing in an IFRAME and have a recursive JavaScript function that loads all of the scripts …

javascript jquery qunit
How to test ajax error callback?

Within an ajax request how can the error callback be tested ? Is it possible to simulate a network connection error ? $.…

javascript jquery selenium qunit
JS - Testing code that uses an IntersectionObserver

I have a (rather poorly written) javascript component in my application that handles infinite scroll pagination, and i'm trying to …

javascript unit-testing qunit intersection-observer
Running QUnit tests with Jenkins and Apache Ant?

Is it possible to execute my QUnit (javascript) unit tests from Jenkins? My build script is Apache Ant. Would Jenkins …

javascript ant build jenkins qunit
Better way to integrate maven/qunit/phantomjs?

I have been investigating the best way to do JS unit testing in our maven CI environment. What I currently …

maven qunit phantomjs
BDD framework for the frontend?

On the server side we have Rspec/Cucumber for BDD development (ruby) vowsjs (node.js) Is there a BDD frameworks …

javascript tdd yui bdd qunit
QUnit with Ajax, QUnit passes the failing tests

I am looking into QUnit for JavaScript unit testing. I am in a strange situation where I am checking against …

javascript jquery ajax unit-testing qunit