I'm using the Jasmine BDD Javascript library and really enjoying it. I have test code that I'd like to reuse (for example, testing multiple implementations of a base class or running the same tests in a slightly different context) and I'...
I need to test JavaScript code that relies on setTimeout in order to perform periodic tasks. How can I from my Mocha tests simulate the passing of time so that setTimeout callbacks gets called? I am basically asking for functionality similar to Jasm...
What are the good resource to learn BDD & TDD (ruby , C#, javascript). What are the good framework using now?...
How can I copy a specific text with protractor ? I would like to load a text to paste after with this command : return browser.actions().sendKeys(Keys.CONTROL, 'v').perform(); Sample : Load my text "test" and after with this comm...
Consider the following jasmine spec: describe("something.act()", function() { it("calls some function of my module", function() { var mod = require('my_module'); spyOn(mod, "someFunction"); something.act...
I'm getting acquainted with Jasmine (http://pivotal.github.com/jasmine/) and found something rather baffling: it("should be able to send a Ghost Request", function() { var api = fm.api_wrapper; api.sendGhostRequest(function(response...
Coming from the Ruby community I'm looking for a BDD-testing framework for Javascript/Node.js. I was JSpec and thought it would be the right choice because I used RSpec in Ruby. But on their GitHub page http://github.com/visionmedia/jspec it sa...
I have a case like this exports.config = { seleniumAddress: 'http://localhost:4444/wd/hub', specs: [ 'test/scenarios/user/login.js', 'test/scenarios/user/choose_user_1.js', 'test/scenarios/...
I have a simple JavaScript file, color.js, and a matching spec file, colorSpec.js. color.js: function Color() { } colorSpec.js: require('./color.js'); describe("color", function() { it("should work", function() {...
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...
©2020 All rights reserved.