From 413606ec3366364184607ca59bf624f16062eaa4 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Tue, 5 Jul 2016 23:11:30 -0800 Subject: [PATCH] Rename. --- .../kotlin/com/beust/kobalt/internal/JvmCompilerPlugin.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/internal/JvmCompilerPlugin.kt b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/internal/JvmCompilerPlugin.kt index 2352bfdc..5433e84f 100644 --- a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/internal/JvmCompilerPlugin.kt +++ b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/internal/JvmCompilerPlugin.kt @@ -86,10 +86,10 @@ open class JvmCompilerPlugin @Inject constructor( private fun taskTest(project: Project, configName: String): TaskResult { lp(project, "Running tests: $configName") - val runContributor = ActorUtils.selectAffinityActor(project, context, + val testContributor = ActorUtils.selectAffinityActor(project, context, context.pluginInfo.testRunnerContributors) - if (runContributor != null && runContributor.affinity(project, context) > 0) { - return runContributor.run(project, context, configName, + if (testContributor != null && testContributor.affinity(project, context) > 0) { + return testContributor.run(project, context, configName, dependencyManager.testDependencies(project, context)) } else { log(1, "Couldn't find a test runner for project ${project.name}, did you specify a dependenciesTest{}?")