This question already has an answer here:
- How to run golang tests sequentially? 3 answers
I write five test file. for example
1_test.go, 2_test.go, 3_test.go, 4_test.go, 5_test.go
each test go file has each setup and teardown logic for variable enviorment. so i wanna test sequentially
But when I type "go test", I think it maybe executed pararelly.
I tried "go test -cpu 1" and "go test -cpu 1 -parallel 1", but it is not working.
anybody help me.
Aucun commentaire:
Enregistrer un commentaire