com.teamscale.test_impacted.engine.ImpactedTestEngineConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of impacted-test-engine Show documentation
Show all versions of impacted-test-engine Show documentation
A JUnit 5 engine that handles retrieving impacted tests from Teamscale and organizes their execution
package com.teamscale.test_impacted.engine;
import com.teamscale.test_impacted.engine.executor.ITestSorter;
import com.teamscale.test_impacted.engine.executor.TeamscaleAgentNotifier;
import org.junit.platform.engine.TestEngine;
/** Container for a configuration used by the {@link ImpactedTestEngine} */
public class ImpactedTestEngineConfiguration {
/** The directory to write testwise coverage and available tests to. */
final TestDataWriter testDataWriter;
/** The test engine registry used to determine the {@link TestEngine}s to use. */
final TestEngineRegistry testEngineRegistry;
/** The {@link ITestSorter} to use for execution of tests. */
final ITestSorter testSorter;
/** An API to signal test start and end to the agent. */
final TeamscaleAgentNotifier teamscaleAgentNotifier;
public ImpactedTestEngineConfiguration(
TestDataWriter testDataWriter,
TestEngineRegistry testEngineRegistry,
ITestSorter testSorter, TeamscaleAgentNotifier teamscaleAgentNotifier ) {
this.testDataWriter = testDataWriter;
this.testEngineRegistry = testEngineRegistry;
this.testSorter = testSorter;
this.teamscaleAgentNotifier = teamscaleAgentNotifier;
}
}