qunit Questions
1
Solved
While writing QUnit tests I was suprised by the behaviour of 'throws'.
Regarding the following code (http://jsfiddle.net/DuYAc/75/), could anyone please answer my questions:
function subfunc() {
...
Autolithography asked 13/1, 2014 at 16:6
1
I noticed that qUnit doesn't give any notice when an exception happens in a later part of the test. For example, running this in a test():
stop();
function myfun(ed) {
console.log('resumed');
st...
Initial asked 19/12, 2013 at 2:28
1
Solved
Background
I'm writing some functional tests to test that my router is navigating and loading my models correctly. So far, so good--even in light of this issue.
I've created a fiddle, for your en...
Kofu asked 27/12, 2013 at 17:1
2
QUnit has an assertion for testing that a function raises an exception (QUnit/raises). Is it possible -- using QUnit -- to assert that a function does not raise an exception.
I realize that it is ...
Unidirectional asked 22/3, 2012 at 12:34
4
Solved
Is it possible to execute my QUnit (javascript) unit tests from Jenkins? My build script is Apache Ant. Would Jenkins execute this as a separate Build Step, or would I need to add something in the ...
Spiller asked 23/4, 2012 at 5:54
1
I've started using QUnit for testing the jQuery code of a certain page in my ASP.NET MVC3 application. So far I've provided a HTML-mock which the javascript-file under test uses. Is it possib...
Nordin asked 30/12, 2011 at 10:35
5
Solved
How to easily integrate Jenkins with qUnit? I gonna use real browser (like firefox and chrome) to run tests. My server runs on RedHat 6.1 Linux. I think I have all needed plugins/libraries but I st...
Enneahedron asked 13/10, 2011 at 15:34
2
I've searched all over and it appears this error is due to not using asyncTest properly. However, per the documentation, it appears that I am doing it correctly. I'm guessing I'm missing a small de...
Observation asked 5/6, 2013 at 20:22
1
When I try to inject $location service in unit test (qunit) I get error:
Unknown $rootElementProvider <- $rootElement <- $location
Other things without $location service dependency ar...
3
Solved
It's a great thing that with Resharper 6 one can write qunit tests and run those with the integrated resharper test runner. However, I wonder if it is possible to set breakpoints in the tests and t...
Grab asked 10/12, 2011 at 21:56
2
Solved
I have a two tests that are causing side effects with each other. I understand why as I am replacing a jQuery built-in function that is being called internally in the second test. However what I do...
Dollfuss asked 28/5, 2013 at 20:18
1
So I have a simple isPlainObject method that I use to test for JavaScript object literals:
var isPlainObject = function (obj) {
return typeof obj === "object" && {}.toString.call(obj) ===...
Rasia asked 1/5, 2013 at 18:4
2
I have two XXXTest.html files, each similar to this:
<html>
<head>
<link rel="stylesheet" href="http://code.jquery.com/qunit/qunit-1.11.0.css" />
<script src="../../../publ...
Trig asked 28/3, 2013 at 23:39
2
Solved
I have a simplified QUnit test which consists of 2 simple tests that fails randomly/alternately for no good reason (They are both atomic, meaning that one test doesn't change anything of the other ...
Hydrophyte asked 8/5, 2013 at 15:28
1
Solved
Currently, I am using PhantomJS for running Javascript unit tests in QUnit and Sinon framework on our build server.
But, PhantomJS uses JavaScriptCore with JIT compiler as its Javascript engine. I...
Tiffanitiffanie asked 8/5, 2013 at 9:38
2
Solved
I'm playing with Karma test runner (http://karma-runner.github.io/0.8/index.html) using qunit (http://qunitjs.com). I succesfully created and ran simple tests (100% JavaScript), but now I'm trying ...
Willaims asked 25/4, 2013 at 8:21
1
Solved
This may be obvious to everyone else but I didn't find it by searching, so posting both the question and one possible answer here.
Background:
Custom JQuery UI widget using widget factory
In the...
Alsace asked 16/4, 2013 at 21:6
4
Solved
I am looking into QUnit for JavaScript unit testing. I am in a strange situation where I am checking against the value returned from the Ajax call.
For the following test I am purposely trying to...
Speechmaking asked 2/6, 2009 at 18:28
1
Solved
I have written unit test for ajax suing Qunit, but getting error like
Error: assertion outside test context, was .success@http://test.loc/assets/test/widget-add-or-edit-test.js:227
b.Callbacks/c...
Dignadignified asked 10/4, 2013 at 9:16
1
Solved
I'm using QUnit to test my JavaScript. I'm also using requirejs. I have test code which looks like this:
QUnit.config.autostart = false;
require(['tests/tests'], function () {
QUnit.start(); //T...
7
Solved
I have a webapp build plan running on a Continuous Integration system (Atlassian Bamboo 2.5). I need to incorporate QUnit-based JavaScript unit tests into the build plan so that on each build, the ...
Censure asked 15/1, 2010 at 9:20
3
Solved
I am having a problem with QUNIT, no matter what I seem to do the test suites will only ever recognize one test or module, even though I have multiple one's in the javascript. Any help will be grea...
Chickenhearted asked 10/6, 2012 at 17:26
1
We've introduced CI system with travis CI to our open source project enchant.js on JavaScript.
https://github.com/wise9/enchant.js
We like qunit tests and we're running them with grunt.js (npm), b...
Elaterite asked 8/1, 2013 at 12:41
2
Solved
In my several projects, I use MVC pattern for separating code (of concerns) into 3 tiers. Both of Model and Control tiers run on C# so I use testing framework like MSTest or NUnit to validate funct...
Zestful asked 1/1, 2013 at 8:6
1
Solved
I recall having seen at some point screen shots of a select list of QUnit test modules in the test runner toolbar of QUnit. My impression was that selecting one of the modules in the select list wo...
Consociate asked 25/12, 2012 at 5:52
© 2022 - 2024 — McMap. All rights reserved.