Debian Codegraph @

reporters/__snapshots__/gojson_report_test.snap

raw
1
2 [GoJSONReport when configured to write the report inside a folder creates the folder and the report file - 1]
3 {"Time":"0001-01-01T00:00:00Z","Action":"start","Package":"/path/to/suite"}
4 {"Time":"0001-01-01T00:00:00Z","Action":"run","Package":"/path/to/suite","Test":"[It] A B C [dolphin, gorilla, cow, cat, dog]"}
5 {"Time":"0001-01-01T00:00:00Z","Action":"output","Package":"/path/to/suite","Test":"[It] A B C [dolphin, gorilla, cow, cat, dog]","Output":"STEP: a by step - cl0.go:12 @ 09/09/25 10:50:00\n\u003e Enter [It] C - cl2.go:80 @ 09/09/25 10:50:00\nginkgowriter\n[TIMEDOUT] failure\nmessage\nIn [It] at: cl3.go:103 @ 09/09/25 10:50:00\noutput\n[PANICKED] \nIn [It] at: cl4.go:144 @ 09/09/25 10:50:00\n\nthe panic!\n\nFull Stack Trace\n full-trace\n cl-4\n\u003c Exit [It] C - cl2.go:80 @ 09/09/25 10:50:00 (87ms)\na report entry - cl1.go:37 @ 09/09/25 10:50:00\na hidden report entry - cl1.go:37 @ 09/09/25 10:50:00\ncleanup!\n[FAILED] a subsequent failure\nIn [AfterEach] at: :0 @ 09/09/25 10:50:00\n"}
6 {"Time":"0001-01-01T00:00:00Z","Action":"output","Package":"/path/to/suite","Test":"[It] A B C [dolphin, gorilla, cow, cat, dog]","Output":"some captured stdout\n"}
7 {"Time":"0001-01-01T00:00:00Z","Action":"fail","Package":"/path/to/suite","Test":"[It] A B C [dolphin, gorilla, cow, cat, dog]","Elapsed":1}
8 {"Time":"0001-01-01T00:00:00Z","Action":"run","Package":"/path/to/suite","Test":"[It] A [cat, owner:frank, OWNer:bob]"}
9 {"Time":"0001-01-01T00:00:00Z","Action":"output","Package":"/path/to/suite","Test":"[It] A [cat, owner:frank, OWNer:bob]","Output":"\u003e Enter [It] A - cl0.go:12 @ 09/09/25 10:50:00\nsome GinkgoWriter\nmy progress report\n A (Spec Runtime: 5s)\n cl0.go:12\nSTEP: My Step - cl1.go:37 @ 09/09/25 10:50:00\noutput is interspersed\nmy entry - cl1.go:37 @ 09/09/25 10:50:00\nmy hidden entry - cl1.go:37 @ 09/09/25 10:50:00\nEND STEP: My Step - cl1.go:37 @ 09/09/25 10:50:00 (200ms)\nhere and there\n\u003c Exit [It] A - cl0.go:12 @ 09/09/25 10:50:00 (300ms)\n"}
10 {"Time":"0001-01-01T00:00:00Z","Action":"output","Package":"/path/to/suite","Test":"[It] A [cat, owner:frank, OWNer:bob]","Output":"some captured stdout\n"}
11 {"Time":"0001-01-01T00:00:00Z","Action":"pass","Package":"/path/to/suite","Test":"[It] A [cat, owner:frank, OWNer:bob]","Elapsed":1}
12 {"Time":"0001-01-01T00:00:00Z","Action":"run","Package":"/path/to/suite","Test":"[It] A [owner:org, owner:team]"}
13 {"Time":"0001-01-01T00:00:00Z","Action":"skip","Package":"/path/to/suite","Test":"[It] A [owner:org, owner:team]","Elapsed":1}
14 {"Time":"0001-01-01T00:00:00Z","Action":"run","Package":"/path/to/suite","Test":"[It] A [owner:org]"}
15 {"Time":"0001-01-01T00:00:00Z","Action":"output","Package":"/path/to/suite","Test":"[It] A [owner:org]","Output":"\u003e Enter [It] A - cl0.go:12 @ 09/09/25 10:50:00\n[PANICKED] failure\nmessage\nIn [It] at: cl1.go:37 @ 09/09/25 10:50:00\n\nthe panic\n\nFull Stack Trace\n full-trace\n cl-1\n\u003c Exit [It] A - cl0.go:12 @ 09/09/25 10:50:00 (300ms)\n"}
16 {"Time":"0001-01-01T00:00:00Z","Action":"output","Package":"/path/to/suite","Test":"[It] A [owner:org]","Output":"some captured stdout\n"}
17 {"Time":"0001-01-01T00:00:00Z","Action":"fail","Package":"/path/to/suite","Test":"[It] A [owner:org]","Elapsed":1}
18 {"Time":"0001-01-01T00:00:00Z","Action":"fail","Package":"/path/to/suite","Elapsed":60}
19
20 ---
21
22 [GoJSONReport when configured to write the report inside a folder creates the folder and the report file - 2]
23 STEP: a by step - cl0.go:12 @ 09/09/25 10:50:00
24 > Enter [It] C - cl2.go:80 @ 09/09/25 10:50:00
25 ginkgowriter
26 [TIMEDOUT] failure
27 message
28 In [It] at: cl3.go:103 @ 09/09/25 10:50:00
29 output
30 [PANICKED]
31 In [It] at: cl4.go:144 @ 09/09/25 10:50:00
32
33 the panic!
34
35 Full Stack Trace
36 full-trace
37 cl-4
38 < Exit [It] C - cl2.go:80 @ 09/09/25 10:50:00 (87ms)
39 a report entry - cl1.go:37 @ 09/09/25 10:50:00
40 a hidden report entry - cl1.go:37 @ 09/09/25 10:50:00
41 cleanup!
42 [FAILED] a subsequent failure
43 In [AfterEach] at: :0 @ 09/09/25 10:50:00
44 some captured stdout
45 > Enter [It] A - cl0.go:12 @ 09/09/25 10:50:00
46 some GinkgoWriter
47 my progress report
48 A (Spec Runtime: 5s)
49 cl0.go:12
50 STEP: My Step - cl1.go:37 @ 09/09/25 10:50:00
51 output is interspersed
52 my entry - cl1.go:37 @ 09/09/25 10:50:00
53 my hidden entry - cl1.go:37 @ 09/09/25 10:50:00
54 END STEP: My Step - cl1.go:37 @ 09/09/25 10:50:00 (200ms)
55 here and there
56 < Exit [It] A - cl0.go:12 @ 09/09/25 10:50:00 (300ms)
57 some captured stdout
58 > Enter [It] A - cl0.go:12 @ 09/09/25 10:50:00
59 [PANICKED] failure
60 message
61 In [It] at: cl1.go:37 @ 09/09/25 10:50:00
62
63 the panic
64
65 Full Stack Trace
66 full-trace
67 cl-1
68 < Exit [It] A - cl0.go:12 @ 09/09/25 10:50:00 (300ms)
69 some captured stdout
70
71 output should match
72 ---
73
74 [GoJSONReport when configured to write the report inside a folder creates the folder and the report file - 3]
75 SUITE: /path/to/suite, tests: 4
76 ---- TEST: [It] A B C [dolphin, gorilla, cow, cat, dog], status: fail
77 ---- TEST: [It] A [cat, owner:frank, OWNer:bob], status: pass
78 ---- TEST: [It] A [owner:org, owner:team], status: skip
79 ---- TEST: [It] A [owner:org], status: fail
80
81 package summary output match
82 ---