forked from ozontech/allure-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
running_test.go
42 lines (33 loc) · 905 Bytes
/
running_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
//go:build examples_new
// +build examples_new
package suite_demo
import (
"github.com/ozontech/allure-go/pkg/framework/provider"
"testing"
"github.com/ozontech/allure-go/pkg/framework/suite"
)
//TestRunningDemoSuite demonstrate parallel running
type TestRunningDemoSuite struct {
suite.Suite
}
func (s *TestRunningDemoSuite) TestBeforesAfters(t provider.T) {
t.Parallel()
s.RunSuite(t, new(BeforeAfterDemoSuite))
}
func (s *TestRunningDemoSuite) TestFails(t provider.T) {
t.Parallel()
s.RunSuite(t, new(FailsDemoSuite))
}
func (s *TestRunningDemoSuite) TestLabels(t provider.T) {
t.Parallel()
s.RunSuite(t, new(LabelsDemoSuite))
}
func (s *TestRunningDemoSuite) TestParametrized(t provider.T) {
t.Parallel()
s.RunSuite(t, new(ParametrizedSuite))
}
func TestRunDemo(t *testing.T) {
// use RunSuite to run suite of suites
t.Parallel()
suite.RunSuite(t, new(TestRunningDemoSuite))
}