Last active
August 29, 2015 14:12
-
-
Save twolfson/9b769b716dd7bad383ac to your computer and use it in GitHub Desktop.
Proof of concept for https://github.com/mochajs/mocha/issues/1481
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "gist-mocha-only", | |
"version": "1.0.0", | |
"description": "Proof of concept for https://github.com/mochajs/mocha/issues/1481", | |
"main": "index.js", | |
"scripts": { | |
"test": "mocha test-one.js test-two.js" | |
}, | |
"repository": { | |
"type": "git", | |
"url": "git@gist.github.com:9b769b716dd7bad383ac.git" | |
}, | |
"author": "Todd Wolfson <todd@twolfson.com> (http://twolfson.com/)", | |
"license": "UNLICENSE", | |
"devDependencies": { | |
"mocha": "~2.1.0" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Load in dependencies | |
var assert = require('assert'); | |
// Start our tests | |
describe.only('one with a .only', function () { | |
it('is run separately from other tests', function () { | |
assert.strictEqual(1, 1); | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Load in dependencies | |
var assert = require('assert'); | |
// Start our tests | |
describe('two without a .only', function () { | |
it('is not run', function () { | |
assert.strictEqual(1, 2); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment