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...
I'm trying to use jstestdriver to generate some unit tests in my ant build in Windows.  I plan to do this by running jstestdriver from an ant target using the <java> ant task.  So far for my ant build file I have the following:   <target...
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...
Background:   I'm coming from Java background so not too familiar with Javascript.  We are planning to introduce JavaScript unit testing to both our existing (legacy) code and future work. We are a java shop (Spring, Weblogic etc) mainly.   We ar...
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...
Is there a way to use jsTestDriver in a headless state where it loads the browsers but does so headlessly (you can't see the browser) or it loads them minimized?...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.