Class TestProjectBuilder

All Implemented Interfaces:
ExtensionPoint, Describable<Builder>, BuildStep, SimpleBuildStep

public class TestProjectBuilder extends AbstractTestBuilder
Builder providing the execution of an ecu.test project.
  • Constructor Details

    • TestProjectBuilder

      @DataBoundConstructor public TestProjectBuilder(@Nonnull String testFile)
      Instantiates a new TestProjectBuilder.
      Parameters:
      testFile - the project file
  • Method Details

    • getProjectConfig

      @Nonnull public ProjectConfig getProjectConfig()
    • setProjectConfig

      @DataBoundSetter public void setProjectConfig(@CheckForNull ProjectConfig projectConfig)
    • runTest

      protected boolean runTest(String testFile, TestConfig testConfig, ExecutionConfig executionConfig, Run<?,?> run, FilePath workspace, Launcher launcher, TaskListener listener) throws IOException, InterruptedException
      Description copied from class: AbstractTestBuilder
      Run the test with given configurations within a defined timeout.
      Specified by:
      runTest in class AbstractTestBuilder
      Parameters:
      testFile - the full test file path
      testConfig - the expanded test configuration
      executionConfig - the expanded execution configuration
      run - the build
      workspace - the workspace
      launcher - the launcher
      listener - the listener
      Returns:
      true if running the test passed, false otherwise
      Throws:
      IOException - signals that an I/O exception has occurred
      InterruptedException - if the build gets interrupted