1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-27 00:38:11 -07:00
This commit is contained in:
Cedric Beust 2016-07-05 23:11:30 -08:00
parent c6f91f6cab
commit 413606ec33

View file

@ -86,10 +86,10 @@ open class JvmCompilerPlugin @Inject constructor(
private fun taskTest(project: Project, configName: String): TaskResult { private fun taskTest(project: Project, configName: String): TaskResult {
lp(project, "Running tests: $configName") lp(project, "Running tests: $configName")
val runContributor = ActorUtils.selectAffinityActor(project, context, val testContributor = ActorUtils.selectAffinityActor(project, context,
context.pluginInfo.testRunnerContributors) context.pluginInfo.testRunnerContributors)
if (runContributor != null && runContributor.affinity(project, context) > 0) { if (testContributor != null && testContributor.affinity(project, context) > 0) {
return runContributor.run(project, context, configName, return testContributor.run(project, context, configName,
dependencyManager.testDependencies(project, context)) dependencyManager.testDependencies(project, context))
} else { } else {
log(1, "Couldn't find a test runner for project ${project.name}, did you specify a dependenciesTest{}?") log(1, "Couldn't find a test runner for project ${project.name}, did you specify a dependenciesTest{}?")