Class TestsBadgeOperation

java.lang.Object
rife.bld.operations.AbstractOperation<T>
rife.bld.operations.AbstractProcessOperation<T>
rife.bld.operations.TestOperation<rife.bld.operations.JUnitOperation,rife.bld.operations.JUnitOptions>
rife.bld.operations.JUnitOperation
rife.bld.extension.TestsBadgeOperation

public class TestsBadgeOperation extends rife.bld.operations.JUnitOperation
Extends the standard TestOperation and calls the TestsBadge service with the credentials of your project and the test results.

Note that this will parse the resulting output of the test operation, which relies on JUnit 5's output.

Since:
1.0
  • Field Summary

    Fields inherited from class rife.bld.operations.JUnitOperation

    DEFAULT_TEST_TOOL_JUNIT5

    Fields inherited from class rife.bld.operations.TestOperation

    testToolOptions_

    Fields inherited from class rife.bld.operations.AbstractProcessOperation

    classpath_, DEFAULT_JAVA_TOOL, errorProcessor_, errorProcessorThread_, javaOptions_, javaTool_, mainClass_, outputProcessor_, outputProcessorThread_, process_, successful_, workDirectory_
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new operation.
  • Method Summary

    Modifier and Type
    Method
    Description
    Retrieves the API key for the operation.
    apiKey(String apiKey)
    Set the API key for the operation.
     
    url()
    Retrieves the URL for the operation.
    url(String url)
    Set the URL for the operation.

    Methods inherited from class rife.bld.operations.JUnitOperation

    createTestToolOptions, executeConstructProcessCommandList, fromProject

    Methods inherited from class rife.bld.operations.TestOperation

    testToolOptions, testToolOptions, testToolOptions

    Methods inherited from class rife.bld.operations.AbstractProcessOperation

    classpath, classpath, classpath, errorProcessor, errorProcessor, execute, executeStartProcess, javaOptions, javaOptions, javaTool, javaTool, mainClass, mainClass, outputProcessor, process, workDirectory, workDirectory

    Methods inherited from class rife.bld.operations.AbstractOperation

    executeOnce, executeOnce, silent, silent

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TestsBadgeOperation

      public TestsBadgeOperation()
      Creates a new operation.
      Since:
      1.0
  • Method Details

    • url

      public TestsBadgeOperation url(String url)
      Set the URL for the operation.
      Parameters:
      url - the TestsBadge service update API URL
      Returns:
      this operation instance
      Since:
      1.0
    • apiKey

      public TestsBadgeOperation apiKey(String apiKey)
      Set the API key for the operation.
      Parameters:
      apiKey - the unique API key for your project
      Returns:
      this operation instance
      Since:
      1.0
    • url

      public String url()
      Retrieves the URL for the operation.
      Returns:
      the TestsBadge service update API URL
      Since:
      1.0
    • apiKey

      public String apiKey()
      Retrieves the API key for the operation.
      Returns:
      the unique API key for your project
      Since:
      1.0
    • outputProcessor

      public Function<String,Boolean> outputProcessor()
      Overrides:
      outputProcessor in class rife.bld.operations.AbstractProcessOperation<rife.bld.operations.JUnitOperation>