| 1 | package preview_fixture_test |
| 2 | |
| 3 | import ( |
| 4 | "fmt" |
| 5 | "os" |
| 6 | "testing" |
| 7 | |
| 8 | . "github.com/onsi/ginkgo/v2" |
| 9 | . "github.com/onsi/gomega" |
| 10 | ) |
| 11 | |
| 12 | func TestPreviewFixture(t *testing.T) { |
| 13 | RegisterFailHandler(Fail) |
| 14 | if os.Getenv("PREVIEW") == "true" { |
| 15 | report := PreviewSpecs("PreviewFixture Suite", Label("suite-label")) |
| 16 | for _, spec := range report.SpecReports { |
| 17 | fmt.Println(spec.State, spec.FullText()) |
| 18 | } |
| 19 | } |
| 20 | if os.Getenv("RUN") == "true" { |
| 21 | RunSpecs(t, "PreviewFixture Suite", Label("suite-label")) |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | var _ = Describe("specs", func() { |
| 26 | It("A", Label("elephant"), func() { |
| 27 | |
| 28 | }) |
| 29 | |
| 30 | It("B", Label("elephant"), func() { |
| 31 | |
| 32 | }) |
| 33 | |
| 34 | It("C", func() { |
| 35 | |
| 36 | }) |
| 37 | |
| 38 | It("D", func() { |
| 39 | |
| 40 | }) |
| 41 | }) |