Skip to content
This repository has been archived by the owner on Jun 27, 2020. It is now read-only.

Builds don't fail when karma test fails #24

Open
jesse-bonzo opened this issue Sep 27, 2017 · 0 comments
Open

Builds don't fail when karma test fails #24

jesse-bonzo opened this issue Sep 27, 2017 · 0 comments

Comments

@jesse-bonzo
Copy link

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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant