View Source OpenTelemetry.SemConv.Incubating.TestAttributes (OpenTelemetry.SemConv v1.27.0)

OpenTelemetry Semantic Conventions for Test attributes.

Summary

Types

The status of the actual test case result from test execution.

The status of the test suite run.

Functions

The fully qualified human readable name of the test case.

The status of the actual test case result from test execution.

The human readable name of a test suite.

The status of the test suite run.

Types

Link to this type

test_case_result_status_values()

View Source
@type test_case_result_status_values() :: %{pass: :pass, fail: :fail}

The status of the actual test case result from test execution.

Enum Values

  • :pass e - pass
  • :fail e - fail
Link to this type

test_suite_run_status_values()

View Source
@type test_suite_run_status_values() :: %{
  success: :success,
  failure: :failure,
  skipped: :skipped,
  aborted: :aborted,
  timed_out: :timed_out,
  in_progress: :in_progress
}

The status of the test suite run.

Enum Values

  • :success e - success
  • :failure e - failure
  • :skipped e - skipped
  • :aborted e - aborted
  • :timed_out e - timed_out
  • :in_progress e - in_progress

Functions

@spec test_case_name() :: :"test.case.name"

The fully qualified human readable name of the test case.

Value type

Value must be of type atom() | String.t().

Examples

["org.example.TestCase1.test1", "example/tests/TestCase1.test1", "ExampleTestCase1_test1"]
iex> OpenTelemetry.SemConv.Incubating.TestAttributes.test_case_name()
:"test.case.name"
Link to this function

test_case_result_status()

View Source
@spec test_case_result_status() :: :"test.case.result.status"

The status of the actual test case result from test execution.

Examples

["pass", "fail"]
iex> OpenTelemetry.SemConv.Incubating.TestAttributes.test_case_result_status()
:"test.case.result.status"

iex> OpenTelemetry.SemConv.Incubating.TestAttributes.test_case_result_status_values().pass
:pass

iex> %{OpenTelemetry.SemConv.Incubating.TestAttributes.test_case_result_status() => OpenTelemetry.SemConv.Incubating.TestAttributes.test_case_result_status_values().pass}
%{:"test.case.result.status" => :pass}
Link to this function

test_case_result_status_values()

View Source
@spec test_case_result_status_values() :: test_case_result_status_values()
@spec test_suite_name() :: :"test.suite.name"

The human readable name of a test suite.

Value type

Value must be of type atom() | String.t().

Examples

["TestSuite1"]
iex> OpenTelemetry.SemConv.Incubating.TestAttributes.test_suite_name()
:"test.suite.name"
@spec test_suite_run_status() :: :"test.suite.run.status"

The status of the test suite run.

Examples

["success", "failure", "skipped", "aborted", "timed_out", "in_progress"]
iex> OpenTelemetry.SemConv.Incubating.TestAttributes.test_suite_run_status()
:"test.suite.run.status"

iex> OpenTelemetry.SemConv.Incubating.TestAttributes.test_suite_run_status_values().success
:success

iex> %{OpenTelemetry.SemConv.Incubating.TestAttributes.test_suite_run_status() => OpenTelemetry.SemConv.Incubating.TestAttributes.test_suite_run_status_values().success}
%{:"test.suite.run.status" => :success}
Link to this function

test_suite_run_status_values()

View Source
@spec test_suite_run_status_values() :: test_suite_run_status_values()