Last active
August 29, 2015 14:08
-
-
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)
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
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' | |
} |
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 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" | |
] | |
}; | |
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("Simple suite", { | |
'will assert true': function() { | |
buster.assert(true); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just put "simpleSuite.js" int src/test/js/ and run
gradle wrapper
./gradlew busterTest