I have a dynamic page built with jQuery. Html pieces are loaded from mustache templates. These templates are downloaded from a url, and I would like to unit test the overall html construction :  The JsTestDriver test is :   AppTest = TestCase("Ap...
My JS gets loaded after the DOM is ready. Once the DOM is ready, the JS checks certain aspects of the environment (window dimensions etc.), binds event listeners to specific elements and then, finally, runs.  How do I set this up in js-test-driver? I...
I'm piecing together a jsTestDriver/Jasmine environment for testing our front end code and I'm seeing a lot of references to Sinon.js for stand-alone (or drop in) spies.  Could someone describe what Sinon.js brings to the table that Jasmine d...
Wow, what a mess. This is the scenario.   Backbone driven JS app. RequireJS for AMD functionality, initialized like this:   <script data-main="js/main" src="js/require.js" type="text/javascript"></script>   then in...
I have the following code:  function TestStats($xhr) {     $xhr(             'GET',             '/test-dashboard/get-projects.json',             angular.bind(this, function(code, response) {                 this.projects = response.pr...
I have lots of Jasmine unit tests, that are running unit tests for Javascripts code. They are using Jasmine-jquery plugin to do DOM manipulation. they use loadFixture, to load fixtures of HTML  I tried to automate those unit tests, using JsTestDriver...
Trying to add tests support into my project. Attached JsTestDriver with coverage plugin. Dummy tests are working correctly, but when I load up all my source files I'm getting application crashed with the following:  [java] **line 109:12 no viable...
I'm trying to figure out how to correctly use JS Test Driver's assertException method. From google's documentation it should be: assertException([msg], callback, error). However, no matter what I do, I always get an [ERROR] for this test...
I am working on a project where the Javascript is becoming more complex, and needs to be tested as part of our automated build.  Now I have got a project structure like shown below:  - root |- build.xml |- tools     |- js-test-driver         |- js-te...
I've been evaluating JSTestDriver, and it seems to be working well. I want to use it in a continuous integration environment, and I want to know if multiple projects can be testing against the same JSTestDriver server at the same time.  So my con...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.