Skip to content

Commit

Permalink
Implement getWorker{Application|Implementation}{Classpath|Modulepath}…
Browse files Browse the repository at this point in the history
…Modules (still fail)
  • Loading branch information
dmikurube committed Sep 10, 2024
1 parent a4f18a2 commit b9deee5
Showing 1 changed file with 40 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,21 @@ public Action<WorkerProcessBuilder> getWorkerConfigurationAction() {
return workerProcessBuilder -> workerProcessBuilder.sharedPackages("org.junit");
}

/**
* Returns a list of distribution modules that the test worker requires on the application classpath.
* These dependencies are loaded from the Gradle distribution.
*
* Application classes specified by {@link WorkerProcessBuilder#sharedPackages} are
* also included in the implementation classpath.
*
* @see #getUseDistributionDependencies()
*/
@Internal
@Override
public List<TestFrameworkDistributionModule> getWorkerApplicationClasspathModules() {
return Collections.emptyList();
}

/**
* Returns a list of distribution modules that the test worker requires on the application modulepath if it runs as a module.
* These dependencies are loaded from the Gradle distribution.
Expand All @@ -139,6 +154,31 @@ public List<TestFrameworkDistributionModule> getWorkerApplicationModulepathModul
return DISTRIBUTION_MODULES;
}

/**
* Returns a list of distribution modules that the test worker requires on implementation the classpath.
* These dependencies are loaded from the Gradle distribution.
*
* @see #getUseDistributionDependencies()
*/
@Internal
@Override
public List<TestFrameworkDistributionModule> getWorkerImplementationClasspathModules() {
// TODO: Include a classpath for EmbulkJUnitPlatformTestClassProcessorFactory here!
return Collections.emptyList();
}

/**
* Returns a list of distribution modules that the test worker requires on the implementation modulepath if it runs as a module.
* These dependencies are loaded from the Gradle distribution.
*
* @see #getUseDistributionDependencies()
*/
@Internal
@Override
public List<TestFrameworkDistributionModule> getWorkerImplementationModulepathModules() {
return Collections.emptyList();
}

/**
* Whether the legacy behavior of loading test framework dependencies from the Gradle distribution
* is enabled. If true, jars specified by this framework are loaded from the Gradle distribution
Expand Down

0 comments on commit b9deee5

Please sign in to comment.