BuildkiteTestCollector.Payload (buildkite_test_collector v0.1.0)
A structure that represents all data about a test suite run needed for analytics.
Link to this section Summary
Functions
Initialise an empty payload with the given CI environment.
Push a test pesult into the payload.
Set the start time of the suite.
Link to this section Types
Link to this type
serialised_environment()
@type t() :: %BuildkiteTestCollector.Payload{ data: [BuildkiteTestCollector.TestResult.t()], data_size: non_neg_integer(), run_env: serialised_environment(), started_at: nil | BuildkiteTestCollector.Duration.t() }
Link to this section Functions
Link to this function
init(ci_env_mod)
@spec init(BuildkiteTestCollector.CiEnv.t()) :: t()
Initialise an empty payload with the given CI environment.
Link to this function
push_test_result(payload, test_result)
@spec push_test_result(t(), BuildkiteTestCollector.TestResult.t()) :: t()
Push a test pesult into the payload.
Link to this function
set_start_time(payload, started_at)
@spec set_start_time(t(), BuildkiteTestCollector.Duration.t()) :: t()
Set the start time of the suite.