Skip to content

Instantly share code, notes, and snippets.

@yaymukund
Last active December 11, 2015 18:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yaymukund/32d7f4642075aaa08e3e to your computer and use it in GitHub Desktop.
Save yaymukund/32d7f4642075aaa08e3e to your computer and use it in GitHub Desktop.
> grunt simplemocha
Running "simplemocha:all" (simplemocha) task
A failing test
✓ works for the first one
1) fails on a subsequent test
✓ never gets to the third test
✖ 1 of 3 tests failed:
1) A failing test fails on a subsequent test:
AssertionError: expected true to be false
at Object.false (/Users/mukund/src/ember-node-resources/node_modules/should/lib/should.js:269:10)
at Context.<anonymous> (/Users/mukund/src/ember-node-resources/test/test-test.js:9:19)
at Test.Runnable.run (/Users/mukund/src/ember-node-resources/node_modules/mocha/lib/runnable.js:213:32)
at Runner.runTest (/Users/mukund/src/ember-node-resources/node_modules/mocha/lib/runner.js:343:10)
at Runner.runTests.next (/Users/mukund/src/ember-node-resources/node_modules/mocha/lib/runner.js:389:12)
at next (/Users/mukund/src/ember-node-resources/node_modules/mocha/lib/runner.js:269:14)
at Runner.hooks (/Users/mukund/src/ember-node-resources/node_modules/mocha/lib/runner.js:278:7)
at next (/Users/mukund/src/ember-node-resources/node_modules/mocha/lib/runner.js:226:23)
at Runner.hook (/Users/mukund/src/ember-node-resources/node_modules/mocha/lib/runner.js:246:5)
at process.startup.processNextTick.process._tickCallback (node.js:244:9)
Warning: Task "simplemocha:all" failed. Use --force to continue.
Aborted due to warnings.
> node_modules/mocha/bin/mocha -R spec test/test-test.js
A failing test
✓ works for the first one
1) fails on a subsequent test
✓ never gets to the third test
✖ 1 of 3 tests failed:
1) A failing test fails on a subsequent test:
AssertionError: expected true to be false
at Object.false (/Users/mukund/src/ember-node-resources/node_modules/should/lib/should.js:269:10)
at Context.<anonymous> (/Users/mukund/src/ember-node-resources/test/test-test.js:9:19)
at Test.Runnable.run (/Users/mukund/src/ember-node-resources/node_modules/mocha/lib/runnable.js:213:32)
at Runner.runTest (/Users/mukund/src/ember-node-resources/node_modules/mocha/lib/runner.js:343:10)
at Runner.runTests.next (/Users/mukund/src/ember-node-resources/node_modules/mocha/lib/runner.js:389:12)
at next (/Users/mukund/src/ember-node-resources/node_modules/mocha/lib/runner.js:269:14)
at Runner.hooks (/Users/mukund/src/ember-node-resources/node_modules/mocha/lib/runner.js:278:7)
at next (/Users/mukund/src/ember-node-resources/node_modules/mocha/lib/runner.js:226:23)
at Runner.hook (/Users/mukund/src/ember-node-resources/node_modules/mocha/lib/runner.js:246:5)
at process.startup.processNextTick.process._tickCallback (node.js:244:9)
grunt.initConfig({
// Tests
simplemocha: {
options: {
ui: 'bdd',
reporter: 'spec'
},
all: { src: 'test/test-test.js' }
},
var should = require('should');
describe('A failing test', function() {
it('works for the first one', function() {
true.should.be.true;
});
it('fails on a subsequent test', function() {
true.should.be.false;
});
it('never gets to the third test', function() {
true.should.be.true;
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment