We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want to run same nodeunit test twice but it gives me error "Fatal error: test after end() was called"
For example:
Setup
nodeunit:{ src: ['test.js'], options: { reporter: 'tap' } } grunt.registerTask('test', 'Run unit test', function (context) { process.env.TEST = "TEST1"; grunt.task.run('nodeunit'); // change the environment variable process.env.TEST = "TEST2"; grunt.task.run("nodeunit"); });
test.js
exports.test = { setUp: function (callback) { callback(); }, tearDown: function (callback) { callback(); }, "test 1": function (test) { test.equal(doSomething(process.env.TEST), true, "should pass with env var:" + process.env.TEST); test.done(); } };
Error while running second grunt.task.run
grunt.task.run
Fatal error: test after end() was called
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I want to run same nodeunit test twice but it gives me error "Fatal error: test after end() was called"
For example:
Setup
test.js
Error while running second
grunt.task.run
The text was updated successfully, but these errors were encountered: