All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.teamscale.test_impacted.engine.ImpactedTestEngineConfiguration Maven / Gradle / Ivy

Go to download

A JUnit 5 engine that handles retrieving impacted tests from Teamscale and organizes their execution

There is a newer version: 34.2.0
Show newest version
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;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy