Skip to content

Instantly share code, notes, and snippets.

@ehirsch
Last active August 29, 2015 14:08
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 ehirsch/253fe9852c96e2952c36 to your computer and use it in GitHub Desktop.
Save ehirsch/253fe9852c96e2952c36 to your computer and use it in GitHub Desktop.
busterTest will fail when buster.js contains more than one configuration.(gradle-buster-plugin)
buildscript {
repositories {
jcenter()
}
dependencies {
// buster.js
classpath 'org.gradle.buster:gradle-buster-plugin:0.2.4.1' // 0.2.4.2 is not available yet.
}
}
//apply plugin: 'com.github.rundis.buster' // this is for 0.2.4.2
apply plugin: 'buster'
buster {
port = 0
}
task wrapper(type: Wrapper) {
gradleVersion = '2.0'
}
var config = module.exports;
config["config 0"] = {
environment: "browser",
rootPath: ".",
tests: []
}
config["config 1"] = {
extends: "config 0",
tests: [
"src/test/js/*.js"
]
};
// for testing purpose we simply copy the first config.
config["config 2"] = {
extends: "config 0",
tests: [
"src/test/js/*.js"
]
};
buster.testCase("Simple suite", {
'will assert true': function() {
buster.assert(true);
}
});
@ehirsch
Copy link
Author

ehirsch commented Oct 29, 2014

Just put "simpleSuite.js" int src/test/js/ and run
gradle wrapper
./gradlew busterTest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment