forked from dailymotion/allure-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.go
29 lines (25 loc) · 646 Bytes
/
init.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
package allure
import (
"github.com/jtolds/gls"
"sync"
)
var (
ctxMgr *gls.ContextManager
wsd string
resultsPath string
createFolderOnce sync.Once
copyEnvFileOnce sync.Once
testPhaseObjects map[string]*testPhaseContainer
)
const (
resultsPathEnvKey = "ALLURE_RESULTS_PATH"
wsPathEnvKey = "ALLURE_WORKSPACE_PATH"
envFileKey = "ALLURE_ENVIRONMENT_FILE_PATH"
nodeKey = "current_step_container"
testResultKey = "test_result_object"
testInstanceKey = "test_instance"
)
func init() {
ctxMgr = gls.NewContextManager()
testPhaseObjects = make(map[string]*testPhaseContainer)
}