Package com.aventstack.chaintest.domain
Class Build
java.lang.Object
com.aventstack.chaintest.domain.Build
- All Implemented Interfaces:
ChainTestEntity
Represents a build in the ChainTest framework.
This class contains information about the build such as project details,
execution stage, test runner, git information, and statistics.
It also provides methods to update and complete the build.
-
Constructor Summary
ConstructorsConstructorDescriptionBuild()Default constructor.Constructs a Build with the specified project ID and test runner.Constructs a Build with the specified test runner.Constructs a Build with the specified project name and test runner. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTags(Collection<Tag> tags) voidvoidvoidvoidcomplete()Completes the build with the current result.voidCompletes the build with the specified result.voidsetEndedAt(long endedAt) voidsetIsBdd(boolean val) voidupdateStats(Test test) Updates the statistics of the build based on the provided test.
-
Constructor Details
-
Build
public Build()Default constructor. -
Build
Constructs a Build with the specified project ID and test runner.- Parameters:
projectId- the project IDtestRunner- the test runner
-
Build
Constructs a Build with the specified project name and test runner.- Parameters:
projectName- the project nametestRunner- the test runner
-
Build
Constructs a Build with the specified test runner.- Parameters:
testRunner- the test runner
-
-
Method Details
-
updateStats
Updates the statistics of the build based on the provided test.- Parameters:
test- the test to update statistics from
-
complete
Completes the build with the specified result.- Parameters:
result- the result to set
-
complete
public void complete()Completes the build with the current result. -
setEndedAt
public void setEndedAt(long endedAt) -
getDurationPretty
-
addTags
-
addTags
-
addTags
-
addTags
-
setIsBdd
public void setIsBdd(boolean val)
-