Giter Club home page Giter Club logo

Comments (4)

Phoscur avatar Phoscur commented on June 1, 2024

I tried to implement --watch for jasmine-node but failed, as I didn't wan't to do major refactorings and couldn't reuse the environment (jasmine, loaded helpers).

going around this problem, there is still a solution to this issue:
here is a base you can include it in your scripts (written on windows):

/**
 * Restart jasmine tests on file changes in spec folder
*/
var fs = require("fs")
,   exec = require('child_process').exec;


var justRunning = false;
fs.watch("spec", {persistent: true}, function(event, filename) {
    if (event === "change" && !justRunning) {
        justRunning = true;
        execJasmineNode(function() {
            justRunning = false;
        });
    }
})
function execJasmineNode(onComplete) {
    exec("jasmine-node --coffee spec", function(err, stdout, stderr) {
        err && console.log(err);
        console.log(stdout);
        console.log(stderr);
        onComplete && onComplete();
    });
}

execJasmineNode();

from jasmine-node.

mcollina avatar mcollina commented on June 1, 2024

This should be closed as the pull request have been merged.

from jasmine-node.

mtscout6 avatar mtscout6 commented on June 1, 2024

Bump on closing this issue?

from jasmine-node.

tebriel avatar tebriel commented on June 1, 2024

Closing.

from jasmine-node.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.