-
Notifications
You must be signed in to change notification settings - Fork 6
/
test_.go
56 lines (41 loc) · 1.56 KB
/
test_.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// Unless explicitly stated otherwise all files in this repository are licensed
// under the Apache License Version 2.0.
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2021 Datadog, Inc.
package constants
const (
// TestName is a tag with specifies the test name.
TestName = "test.name"
// TestSuite indicates the test suite name.
TestSuite = "test.suite"
// TestFramework indicates the test framework name.
TestFramework = "test.framework"
// TestStatus indicates the test execution status.
TestStatus = "test.status"
// TestType indicates the type of the test (test, benchmark).
TestType = "test.type"
// TestSkipReason indicates the skip reason of the test.
TestSkipReason = "test.skip_reason"
// TestSourceFile indicates the source file where the test is located.
TestSourceFile = "test.source.file"
// TestSourceStartLine indicates the line of the source file where the test starts.
TestSourceStartLine = "test.source.start"
// TestSourceEndLine indicates the line of the source file where the test ends.
TestSourceEndLine = "test.source.end"
)
// Define valid test status types.
const (
// TestStatusPass marks test execution as passed.
TestStatusPass = "pass"
// TestStatusFail marks test execution as failed.
TestStatusFail = "fail"
// TestStatusSkip marks test execution as skipped.
TestStatusSkip = "skip"
)
// Define valid test types.
const (
// TestTypeTest defines test type as test.
TestTypeTest = "test"
// TestTypeBenchmark defines test type as benchmark.
TestTypeBenchmark = "benchmark"
)