Builds don't fail when karma test fails
Opened this issue · 0 comments
jesse-bonzo commented
By adding a assertTrue(false)
in TestLinesPresenter
in the frontend-only example project, I expected the gradle build to fail. However, gradle exits with "BUILD SUCCESSFUL" even though a test failed. The test failure can be seen at http://localhost:9876/.
I can work around this by adding the following to the build.gradle:
task karmaRun(type: Exec) {
workingDir 'build'
commandLine 'node_modules/karma/bin/karma', 'run'
dependsOn compileTestKotlin2Js
}
test.dependsOn karmaRun