Run Karma using Gradle? Run Karma using Gradle? jenkins jenkins

Run Karma using Gradle?


I solved this by creating and running an executable task in the build.gradle file:

task karma(type:Exec) {    commandLine 'karma', 'start', '--single-run true'}


Following up here for anyone searching this in 2016 or later:

There's now a Gradle Karma Plugin that is worth considering.