Created
July 17, 2012 14:17
-
-
Save c089/3129658 to your computer and use it in GitHub Desktop.
Buster without environment does not execute both groups
This file contains hidden or 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
buster.testCase('browserfail', { | |
'it fails in the browser': function() { | |
assert.isTrue(false); | |
} | |
}); |
This file contains hidden or 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
var buster = require('buster'); | |
var config = module.exports; | |
config['node tests'] = { | |
environment: 'node', | |
tests: [ 'node-fail.js' ] | |
}; | |
config['browser tests'] = { | |
environment: 'browser', | |
tests: [ 'browser-fail.js' ] | |
}; |
This file contains hidden or 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
var buster = require('buster'); | |
var assert = buster.assertions.assert; | |
buster.testCase('nodefail', { | |
'it fails on node': function() { | |
assert.isTrue(false); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment