Skip to content

Instantly share code, notes, and snippets.

@c089
Created July 17, 2012 14:17
Show Gist options
  • Save c089/3129658 to your computer and use it in GitHub Desktop.
Save c089/3129658 to your computer and use it in GitHub Desktop.
Buster without environment does not execute both groups
buster.testCase('browserfail', {
'it fails in the browser': function() {
assert.isTrue(false);
}
});
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' ]
};
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