pkg/test/ginkgo/cmd_runsuite.go: Add set of tests to run after all other
tests have run
@@ -210,15 +210,19 @@ func (opt *Options) Run(args []string) error {
}
status := newTestStatus(opt.Out, includeSuccess, len(tests), timeout, m, opt.AsEnv())
- smoke, normal := splitTests(tests, func(t *testCase) bool {
- return strings.Contains(t.name, "[Smoke]")
+ early, normal := splitTests(tests, func(t *testCase) bool {
+ return strings.Contains(t.name, "[Early]")
+ })
+
+ late, normal := splitTests(normal, func(t *testCase) bool {
+ return strings.Contains(t.name, "[Late]")
})
// run the tests
start := time.Now()
- // run our smoke tests first
- q := newParallelTestQueue(smoke)
+ // run our Early tests first
+ q := newParallelTestQueue(early)
q.Execute(ctx, parallelism, status.Run)
// run other tests next
@@ -230,6 +234,10 @@ func (opt *Options) Run(args []string) error {
duration = duration.Round(time.Second)
}
+ // run Late test suits after everything else
+ q = newParallelTestQueue(late)
+ q.Execute(ctx, parallelism, status.Run)
+
pass, fail, skip, failing := summarizeTests(tests)
// monitor the cluster while the tests are running and report any detected
