Skip to content Skip to sidebar Skip to footer
Showing posts with the label Qunit

Asserting That A Function Throws Exceptions With Qunit

I am new to Qunit and unit testing. I am trying to figure out what and how to test the following fu… Read more Asserting That A Function Throws Exceptions With Qunit

How Can I Use Html Fixtures With Karma Test Runner Using Qunit?

I'm playing with Karma test runner (http://karma-runner.github.io/0.8/index.html) using qunit (… Read more How Can I Use Html Fixtures With Karma Test Runner Using Qunit?

Obtaining $httpbackend In Qunit Tests

I am writing QUnit tests for an Angular controller. In the setup function of module, I have written… Read more Obtaining $httpbackend In Qunit Tests

Testing For A Function That Contains Asynchronous Code

With qUnit, I understand how to use asyncTest() if you have asynchronous code within your tests, bu… Read more Testing For A Function That Contains Asynchronous Code

Qunit Isn't Running Manually Namespaced Setup Code Like I Would Expect?

In stuff.js: function init() { return 'works'; } (function(ParentNamespace) { Pare… Read more Qunit Isn't Running Manually Namespaced Setup Code Like I Would Expect?

Best Way To Test Javascript Functions That Use Variables From A Closure?

So the problem I'm having is I have a function which uses a variable in a closure and when test… Read more Best Way To Test Javascript Functions That Use Variables From A Closure?

While Unit Testing I Frequently Require To Test Internal (private) Logic, What Is The Best Practice For This?

I believe everyone encounters a case when there's necessity to test internal wiring of the clas… Read more While Unit Testing I Frequently Require To Test Internal (private) Logic, What Is The Best Practice For This?

Avoid / Capture / Verify A Javascript Alert When Testing A Method That Displays One With Qunit

I'm just starting using Qunit and would like to know whether is there a way to capture/verify/o… Read more Avoid / Capture / Verify A Javascript Alert When Testing A Method That Displays One With Qunit