BuildkiteTestCollector.TestResult (buildkite_test_collector v0.1.1)

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.

t()

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()

@type expanded_failure() :: %{expanded: [String.t()], backtrace: [String.t()]}

More information about a test failure, if available

@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)

Convert an ExUnit.Test into a Buildkite Test Analytics datum.