BuildkiteTestCollector.TestResult (buildkite_test_collector v0.1.0)
Information about in individual test execution.
Contains the details needed to process the analytics for the test, such as success/failure, failure reason, trace, etc.
Link to this section Summary
Types
More information about a test failure, if available
A trace of the test run. TBC.
Individual test summary. Spec as yet unconfirmed.
Functions
Convert an ExUnit.Test
into a Buildkite Test Analytics datum.
Link to this section Types
Link to this type
expanded_failure()
More information about a test failure, if available
Link to this type
history()
@type history() :: %{ :section => String.t(), :start_at => BuildkiteTestCollector.Duration.t(), :end_at => BuildkiteTestCollector.Duration.t(), :duration => number(), optional(:children) => [history()], optional(:detail) => map() }
A trace of the test run. TBC.
@type t() :: %BuildkiteTestCollector.TestResult{ failure_expanded: nil | expanded_failure(), failure_reason: nil | String.t(), file_name: String.t(), history: history(), id: Ecto.UUID.t(), identifier: String.t(), location: term(), name: String.t(), result: String.t(), scope: String.t() }
Individual test summary. Spec as yet unconfirmed.
Link to this section Functions
Link to this function
new(test, start_time \\ nil, end_time \\ nil)
@spec new( ExUnit.Test.t(), BuildkiteTestCollector.Duration.t() | nil, BuildkiteTestCollector.Duration.t() | nil ) :: t()
Convert an ExUnit.Test
into a Buildkite Test Analytics datum.