public class TestDiscoveryExtension extends RunConfigurationExtension
Modifier and Type | Field and Description |
---|---|
static Key<TestDiscoveryDataSocketListener> |
SOCKET_LISTENER_KEY |
static java.lang.String |
TEST_DISCOVERY_REGISTRY_KEY |
EP_NAME
Constructor and Description |
---|
TestDiscoveryExtension() |
Modifier and Type | Method and Description |
---|---|
protected void |
attachToProcess(RunConfigurationBase configuration,
ProcessHandler handler,
RunnerSettings runnerSettings)
Attaches the extension to a process that has been started.
|
static java.nio.file.Path |
baseTestDiscoveryPathForProject(Project project) |
void |
cleanUserData(RunConfigurationBase runConfigurationBase) |
java.lang.String |
getSerializationId()
Returns the ID used to serialize the settings.
|
boolean |
isApplicableFor(RunConfigurationBase configuration) |
boolean |
isListenerDisabled(RunConfigurationBase configuration,
java.lang.Object listener,
RunnerSettings runnerSettings) |
static void |
processTracesFile(java.lang.String tracesFilePath,
java.lang.String moduleName,
byte frameworkId,
TestDiscoveryIndex discoveryIndex) |
void |
updateJavaParameters(RunConfigurationBase configuration,
JavaParameters params,
RunnerSettings runnerSettings) |
cleanExtensionsUserData, isEnabledFor, patchCommandLine, updateJavaParameters, wrapElementListener, wrapRefactoringElementListener
createEditor, extendCreatedConfiguration, extendTemplateConfiguration, getEditorTitle, patchCommandLine, readExternal, validateConfiguration, writeExternal
public static final java.lang.String TEST_DISCOVERY_REGISTRY_KEY
public static final Key<TestDiscoveryDataSocketListener> SOCKET_LISTENER_KEY
public java.lang.String getSerializationId()
RunConfigurationExtensionBase
getSerializationId
in class RunConfigurationExtensionBase<RunConfigurationBase<?>>
protected void attachToProcess(RunConfigurationBase configuration, ProcessHandler handler, RunnerSettings runnerSettings)
RunConfigurationExtensionBase
attachToProcess
in class RunConfigurationExtensionBase<RunConfigurationBase<?>>
configuration
- the underlying run configuration.handler
- the ProcessHandler for the running process.runnerSettings
- the runner-specific settings.public void updateJavaParameters(RunConfigurationBase configuration, JavaParameters params, RunnerSettings runnerSettings)
updateJavaParameters
in class RunConfigurationExtension
public boolean isListenerDisabled(RunConfigurationBase configuration, java.lang.Object listener, RunnerSettings runnerSettings)
isListenerDisabled
in class RunConfigurationExtension
public boolean isApplicableFor(RunConfigurationBase configuration)
isApplicableFor
in class RunConfigurationExtensionBase<RunConfigurationBase<?>>
configuration
- Run configurationpublic static java.nio.file.Path baseTestDiscoveryPathForProject(Project project)
public void cleanUserData(RunConfigurationBase runConfigurationBase)
cleanUserData
in class RunConfigurationExtension
public static void processTracesFile(java.lang.String tracesFilePath, java.lang.String moduleName, byte frameworkId, TestDiscoveryIndex discoveryIndex)