Class Report
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<Report.Builder,
Report>
Information about the results from running a series of test cases during the run of a build project. The test cases are specified in the buildspec for the build project using one or more paths to the test case files. You can specify any type of tests you want, such as unit tests, integration tests, and functional tests.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal String
arn()
The ARN of the report run.static Report.Builder
builder()
ACodeCoverageReportSummary
object that contains a code coverage summary for this report.final Instant
created()
The date and time this report run occurred.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final String
The ARN of the build run that generated this report.final Instant
expired()
The date and time a report expires.final ReportExportConfig
Information about where the raw data used to generate this report was exported.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final String
name()
The name of the report that was run.final String
The ARN of the report group associated with this report.static Class
<? extends Report.Builder> final ReportStatusType
status()
The status of this report.final String
The status of this report.final TestReportSummary
ATestReportSummary
object that contains information about this test report.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.final Boolean
A boolean that specifies if this report run is truncated.final ReportType
type()
The type of the report that was run.final String
The type of the report that was run.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
arn
The ARN of the report run.
- Returns:
- The ARN of the report run.
-
type
The type of the report that was run.
- CODE_COVERAGE
-
A code coverage report.
- TEST
-
A test report.
If the service returns an enum value that is not available in the current SDK version,
type
will returnReportType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromtypeAsString()
.- Returns:
- The type of the report that was run.
- CODE_COVERAGE
-
A code coverage report.
- TEST
-
A test report.
- See Also:
-
typeAsString
The type of the report that was run.
- CODE_COVERAGE
-
A code coverage report.
- TEST
-
A test report.
If the service returns an enum value that is not available in the current SDK version,
type
will returnReportType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromtypeAsString()
.- Returns:
- The type of the report that was run.
- CODE_COVERAGE
-
A code coverage report.
- TEST
-
A test report.
- See Also:
-
name
The name of the report that was run.
- Returns:
- The name of the report that was run.
-
reportGroupArn
The ARN of the report group associated with this report.
- Returns:
- The ARN of the report group associated with this report.
-
executionId
The ARN of the build run that generated this report.
- Returns:
- The ARN of the build run that generated this report.
-
status
The status of this report.
If the service returns an enum value that is not available in the current SDK version,
status
will returnReportStatusType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstatusAsString()
.- Returns:
- The status of this report.
- See Also:
-
statusAsString
The status of this report.
If the service returns an enum value that is not available in the current SDK version,
status
will returnReportStatusType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstatusAsString()
.- Returns:
- The status of this report.
- See Also:
-
created
The date and time this report run occurred.
- Returns:
- The date and time this report run occurred.
-
expired
The date and time a report expires. A report expires 30 days after it is created. An expired report is not available to view in CodeBuild.
- Returns:
- The date and time a report expires. A report expires 30 days after it is created. An expired report is not available to view in CodeBuild.
-
exportConfig
Information about where the raw data used to generate this report was exported.
- Returns:
- Information about where the raw data used to generate this report was exported.
-
truncated
A boolean that specifies if this report run is truncated. The list of test cases is truncated after the maximum number of test cases is reached.
- Returns:
- A boolean that specifies if this report run is truncated. The list of test cases is truncated after the maximum number of test cases is reached.
-
testSummary
A
TestReportSummary
object that contains information about this test report.- Returns:
- A
TestReportSummary
object that contains information about this test report.
-
codeCoverageSummary
A
CodeCoverageReportSummary
object that contains a code coverage summary for this report.- Returns:
- A
CodeCoverageReportSummary
object that contains a code coverage summary for this report.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<Report.Builder,
Report> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-