Interface TestCase.Builder

    • Method Detail

      • reportArn

        TestCase.Builder reportArn​(String reportArn)

        The ARN of the report to which the test case belongs.

        Parameters:
        reportArn - The ARN of the report to which the test case belongs.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • testRawDataPath

        TestCase.Builder testRawDataPath​(String testRawDataPath)

        The path to the raw data file that contains the test result.

        Parameters:
        testRawDataPath - The path to the raw data file that contains the test result.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • prefix

        TestCase.Builder prefix​(String prefix)

        A string that is applied to a series of related test cases. CodeBuild generates the prefix. The prefix depends on the framework used to generate the tests.

        Parameters:
        prefix - A string that is applied to a series of related test cases. CodeBuild generates the prefix. The prefix depends on the framework used to generate the tests.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • name

        TestCase.Builder name​(String name)

        The name of the test case.

        Parameters:
        name - The name of the test case.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • status

        TestCase.Builder status​(String status)

        The status returned by the test case after it was run. Valid statuses are SUCCEEDED, FAILED, ERROR, SKIPPED, and UNKNOWN.

        Parameters:
        status - The status returned by the test case after it was run. Valid statuses are SUCCEEDED, FAILED, ERROR, SKIPPED, and UNKNOWN.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • durationInNanoSeconds

        TestCase.Builder durationInNanoSeconds​(Long durationInNanoSeconds)

        The number of nanoseconds it took to run this test case.

        Parameters:
        durationInNanoSeconds - The number of nanoseconds it took to run this test case.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • message

        TestCase.Builder message​(String message)

        A message associated with a test case. For example, an error message or stack trace.

        Parameters:
        message - A message associated with a test case. For example, an error message or stack trace.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • expired

        TestCase.Builder expired​(Instant expired)

        The date and time a test case expires. A test case expires 30 days after it is created. An expired test case is not available to view in CodeBuild.

        Parameters:
        expired - The date and time a test case expires. A test case expires 30 days after it is created. An expired test case is not available to view in CodeBuild.
        Returns:
        Returns a reference to this object so that method calls can be chained together.