Debian Codegraph @

integration/_fixtures/reporting_fixture/reporting_fixture_test.go

raw
1 package reporting_fixture_test
2
3 import (
4 "time"
5
6 . "github.com/onsi/ginkgo/v2"
7 )
8
9 var _ = Describe("reporting test", func() {
10 It("passes", func() {
11 })
12
13 Describe("labelled tests", Label("dog"), func() {
14 It("is labelled", Label("dog", "cat"), func() {
15 })
16 })
17
18 It("fails", func() {
19 GinkgoWriter.Print("some ginkgo-writer output")
20 Fail("fail!")
21 })
22
23 It("panics", func() {
24 panic("boom")
25 })
26
27 It("has a progress report", func() {
28 GinkgoWriter.Print("some ginkgo-writer preamble")
29 time.Sleep(300 * time.Millisecond)
30 GinkgoWriter.Print("some ginkgo-writer postamble")
31 }, PollProgressAfter(50*time.Millisecond))
32
33 PIt("is pending", func() {
34
35 })
36
37 It("is skipped", func() {
38 Skip("skip")
39 })
40
41 It("times out and fails during cleanup", func(ctx SpecContext) {
42 <-ctx.Done()
43 DeferCleanup(func() { Fail("double-whammy") })
44 Fail("failure-after-timeout")
45 }, NodeTimeout(time.Millisecond*100))
46 })