github.com/quickfeed/quickfeed@v0.0.0-20240507093252-ed8ca812a09c/testdata/courses/qf104-2022/tests/lab1/sequence/main_test.go (about) 1 package sequence 2 3 import ( 4 "fmt" 5 "os" 6 "testing" 7 8 "github.com/quickfeed/quickfeed/kit/score" 9 ) 10 11 var scores = score.NewRegistry() 12 13 func TestMain(m *testing.M) { 14 scores.PrintTestInfo() 15 if os.Getenv("SCORE_INIT") != "" { 16 os.Exit(0) 17 } 18 exitCode := m.Run() 19 if err := scores.Validate(); err != nil { 20 fmt.Println(err) 21 } 22 os.Exit(exitCode) 23 }