test_bench-bootstrap 6.1.1 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/executables/bench-bootstrap +7 -0
- data/lib/test_bench_bootstrap/controls.rb +1 -0
- data/lib/test_bench_bootstrap/test_bench_bootstrap.rb +7 -0
- data/lib/test_bench_bootstrap.rb +4 -0
- data/upstream-lib/test_bench_bootstrap/import_constants/controls/namespace.rb +84 -0
- data/upstream-lib/test_bench_bootstrap/import_constants/controls.rb +1 -0
- data/upstream-lib/test_bench_bootstrap/import_constants/import_constants.rb +46 -0
- data/upstream-lib/test_bench_bootstrap/import_constants/macro.rb +10 -0
- data/upstream-lib/test_bench_bootstrap/import_constants.rb +2 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/controls/telemetry_sink.rb +7 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/controls.rb +3 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/executable/controls/path.rb +9 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/executable/controls/random.rb +9 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/executable/controls/run.rb +12 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/executable/controls/standard_input.rb +31 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/executable/controls.rb +8 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/executable/defaults.rb +15 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/executable/executable.rb +61 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/executable/parse_arguments.rb +271 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/executable.rb +7 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/fixture/build.rb +41 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/fixture/controls/comment_style.rb +9 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/fixture/controls/exception.rb +9 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/fixture/controls/fixture.rb +69 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/fixture/controls/message.rb +9 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/fixture/controls/output.rb +11 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/fixture/controls/path.rb +9 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/fixture/controls/session.rb +21 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/fixture/controls/status.rb +9 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/fixture/controls/text.rb +9 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/fixture/controls/title.rb +9 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/fixture/controls.rb +14 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/fixture/evaluate.rb +37 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/fixture/fixture.rb +213 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/fixture.rb +7 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/output/comment_style.rb +63 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/output/controls/comment_style.rb +23 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/output/controls/event.rb +9 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/output/controls/events/aborted.rb +11 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/output/controls/events/commented.rb +23 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/output/controls/events/context_finished.rb +11 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/output/controls/events/context_started.rb +11 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/output/controls/events/detailed.rb +23 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/output/controls/events/failed.rb +11 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/output/controls/events/file_executed.rb +11 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/output/controls/events/file_not_found.rb +11 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/output/controls/events/file_queued.rb +11 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/output/controls/events/skipped.rb +11 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/output/controls/events/test_finished.rb +11 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/output/controls/events/test_started.rb +11 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/output/controls/random.rb +9 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/output/controls/session.rb +19 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/output/controls/status.rb +9 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/output/controls/style.rb +41 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/output/controls/text.rb +31 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/output/controls.rb +26 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/output/detail_policy.rb +46 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/output/device/null.rb +21 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/output/device/substitute.rb +46 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/output/device.rb +75 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/output/get.rb +32 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/output/level.rb +53 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/output/output.rb +572 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/output/writer/style.rb +54 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/output/writer/substitute.rb +27 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/output/writer.rb +119 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/output.rb +20 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/random/controls/seed.rb +25 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/random/controls/sequence.rb +70 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/random/controls.rb +2 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/random/defaults.rb +13 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/random/generator/substitute.rb +23 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/random/generator.rb +64 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/random/iterator.rb +54 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/random/random.rb +27 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/random.rb +8 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/run/controls/events.rb +9 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/run/controls/message.rb +9 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/run/controls/path.rb +9 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/run/controls/random.rb +9 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/run/controls/session.rb +16 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/run/controls/status.rb +44 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/run/controls/summary/file/info.rb +108 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/run/controls/summary/file/totals.rb +38 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/run/controls/summary/file.rb +44 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/run/controls/summary/run.rb +53 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/run/controls/summary.rb +45 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/run/controls/telemetry.rb +11 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/run/controls/time.rb +9 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/run/controls.rb +20 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/run/run.rb +146 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/run/select_files/substitute.rb +45 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/run/select_files.rb +70 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/run/substitute.rb +42 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/run/summary/substitute.rb +19 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/run/summary.rb +477 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/run.rb +10 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/backtrace/location.rb +48 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/backtrace.rb +83 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/comment_disposition.rb +17 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/event.rb +35 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/events/aborted.rb +51 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/events/commented.rb +62 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/events/context_finished.rb +112 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/events/context_started.rb +51 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/events/detailed.rb +62 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/events/failed.rb +41 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/events/file_executed.rb +101 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/events/file_not_found.rb +41 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/events/file_queued.rb +41 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/events/skipped.rb +51 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/events/test_finished.rb +92 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/events/test_started.rb +51 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/events.rb +35 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/exception/message.rb +23 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/exception/raise.rb +52 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/exception.rb +81 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/message.rb +43 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/metadata.rb +9 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/path/apex_directory.rb +76 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/path/file/create.rb +113 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/path/file.rb +42 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/path.rb +87 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/random.rb +9 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/result.rb +17 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/sequence.rb +13 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/status.rb +92 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/telemetry.rb +15 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/telemetry_sink.rb +37 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/text.rb +33 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/title.rb +41 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls.rb +43 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/session/defaults.rb +17 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/session/events.rb +24 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/session/exception/format_backtrace/substitute.rb +34 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/session/exception/format_backtrace.rb +114 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/session/isolate/substitute.rb +45 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/session/isolate.rb +159 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/session/result.rb +44 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/session/session.rb +236 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/session/status.rb +60 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/session/substitute/sink.rb +99 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/session/substitute.rb +154 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/session/trace.rb +53 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/session.rb +22 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/telemetry/controls/event/metadata.rb +72 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/telemetry/controls/event.rb +156 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/telemetry/controls/event_data.rb +113 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/telemetry/controls/handler.rb +83 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/telemetry/controls/path/file.rb +39 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/telemetry/controls/process_id.rb +25 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/telemetry/controls/random.rb +11 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/telemetry/controls/sink.rb +35 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/telemetry/controls/time.rb +104 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/telemetry/controls.rb +16 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/telemetry/event.rb +130 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/telemetry/event_data/serialization.rb +85 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/telemetry/event_data.rb +15 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/telemetry/sink/file.rb +39 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/telemetry/sink/handler/event_registry.rb +44 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/telemetry/sink/handler.rb +128 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/telemetry/sink.rb +13 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/telemetry/substitute/sink.rb +71 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/telemetry/substitute.rb +43 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/telemetry/telemetry.rb +92 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/telemetry.rb +18 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/test_bench.rb +72 -0
- data/upstream-lib/test_bench_bootstrap/test_bench.rb +4 -0
- metadata +353 -16
- data/lib/test_bench/bootstrap.rb +0 -328
@@ -0,0 +1,62 @@
|
|
1
|
+
module TestBenchBootstrap
|
2
|
+
module TestBench
|
3
|
+
class Session
|
4
|
+
module Controls
|
5
|
+
module Events
|
6
|
+
module Commented
|
7
|
+
def self.example(text: nil, disposition: nil)
|
8
|
+
text ||= self.text
|
9
|
+
|
10
|
+
if disposition == :none
|
11
|
+
disposition = nil
|
12
|
+
else
|
13
|
+
disposition ||= self.disposition
|
14
|
+
end
|
15
|
+
|
16
|
+
commented = Session::Events::Commented.new
|
17
|
+
|
18
|
+
commented.text = text
|
19
|
+
commented.disposition = disposition
|
20
|
+
|
21
|
+
commented.metadata = Metadata.example
|
22
|
+
|
23
|
+
commented
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.text
|
27
|
+
Text::Comment.example
|
28
|
+
end
|
29
|
+
|
30
|
+
def self.disposition
|
31
|
+
CommentDisposition.example
|
32
|
+
end
|
33
|
+
|
34
|
+
def self.other_example
|
35
|
+
Other.example
|
36
|
+
end
|
37
|
+
|
38
|
+
module Other
|
39
|
+
def self.example
|
40
|
+
Commented.example(text:, disposition:)
|
41
|
+
end
|
42
|
+
|
43
|
+
def self.text
|
44
|
+
Text::Comment.other_example
|
45
|
+
end
|
46
|
+
|
47
|
+
def self.disposition
|
48
|
+
CommentDisposition.other_example
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
module NoDisposition
|
53
|
+
def self.example
|
54
|
+
Commented.example(disposition: :none)
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
@@ -0,0 +1,112 @@
|
|
1
|
+
module TestBenchBootstrap
|
2
|
+
module TestBench
|
3
|
+
class Session
|
4
|
+
module Controls
|
5
|
+
module Events
|
6
|
+
module ContextFinished
|
7
|
+
def self.example(result: nil, title: nil)
|
8
|
+
result ||= self.result
|
9
|
+
|
10
|
+
if title == :none
|
11
|
+
title = nil
|
12
|
+
else
|
13
|
+
title ||= self.title
|
14
|
+
end
|
15
|
+
|
16
|
+
context_finished = Session::Events::ContextFinished.new
|
17
|
+
|
18
|
+
context_finished.title = title
|
19
|
+
context_finished.result = result
|
20
|
+
|
21
|
+
context_finished.metadata = Metadata.example
|
22
|
+
|
23
|
+
context_finished
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.title
|
27
|
+
Title::Context.example
|
28
|
+
end
|
29
|
+
|
30
|
+
def self.result
|
31
|
+
Result.example
|
32
|
+
end
|
33
|
+
|
34
|
+
def self.other_example
|
35
|
+
Other.example
|
36
|
+
end
|
37
|
+
|
38
|
+
module Other
|
39
|
+
def self.example
|
40
|
+
ContextFinished.example(result:, title:)
|
41
|
+
end
|
42
|
+
|
43
|
+
def self.result
|
44
|
+
Result.other_example
|
45
|
+
end
|
46
|
+
|
47
|
+
def self.title
|
48
|
+
Title::Context.other_example
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
module NoTitle
|
53
|
+
def self.example
|
54
|
+
ContextFinished.example(title: :none)
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
module Passed
|
59
|
+
def self.example
|
60
|
+
ContextFinished.example(result:)
|
61
|
+
end
|
62
|
+
|
63
|
+
def self.result
|
64
|
+
Session::Result.passed
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
module Failed
|
69
|
+
def self.example
|
70
|
+
ContextFinished.example(result:)
|
71
|
+
end
|
72
|
+
|
73
|
+
def self.result
|
74
|
+
Session::Result.failed
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
module Inert
|
79
|
+
def self.example
|
80
|
+
ContextFinished.example(result:)
|
81
|
+
end
|
82
|
+
|
83
|
+
def self.result
|
84
|
+
Session::Result.none
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
module Aborted
|
89
|
+
def self.example
|
90
|
+
ContextFinished.example(result:)
|
91
|
+
end
|
92
|
+
|
93
|
+
def self.result
|
94
|
+
Session::Result.aborted
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
module Incomplete
|
99
|
+
def self.example
|
100
|
+
ContextFinished.example(result:)
|
101
|
+
end
|
102
|
+
|
103
|
+
def self.result
|
104
|
+
Session::Result.incomplete
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
108
|
+
end
|
109
|
+
end
|
110
|
+
end
|
111
|
+
end
|
112
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
module TestBenchBootstrap
|
2
|
+
module TestBench
|
3
|
+
class Session
|
4
|
+
module Controls
|
5
|
+
module Events
|
6
|
+
module ContextStarted
|
7
|
+
def self.example(title: nil)
|
8
|
+
if title == :none
|
9
|
+
title = nil
|
10
|
+
else
|
11
|
+
title ||= self.title
|
12
|
+
end
|
13
|
+
|
14
|
+
context_started = Session::Events::ContextStarted.new
|
15
|
+
|
16
|
+
context_started.title = title
|
17
|
+
|
18
|
+
context_started.metadata = Metadata.example
|
19
|
+
|
20
|
+
context_started
|
21
|
+
end
|
22
|
+
|
23
|
+
def self.title
|
24
|
+
Title::Context.example
|
25
|
+
end
|
26
|
+
|
27
|
+
def self.other_example
|
28
|
+
Other.example
|
29
|
+
end
|
30
|
+
|
31
|
+
module Other
|
32
|
+
def self.example
|
33
|
+
ContextStarted.example(title:)
|
34
|
+
end
|
35
|
+
|
36
|
+
def self.title
|
37
|
+
Title::Context.other_example
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
module NoTitle
|
42
|
+
def self.example
|
43
|
+
ContextStarted.example(title: :none)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,62 @@
|
|
1
|
+
module TestBenchBootstrap
|
2
|
+
module TestBench
|
3
|
+
class Session
|
4
|
+
module Controls
|
5
|
+
module Events
|
6
|
+
module Detailed
|
7
|
+
def self.example(text: nil, disposition: nil)
|
8
|
+
text ||= self.text
|
9
|
+
|
10
|
+
if disposition == :none
|
11
|
+
disposition = nil
|
12
|
+
else
|
13
|
+
disposition ||= self.disposition
|
14
|
+
end
|
15
|
+
|
16
|
+
detailed = Session::Events::Detailed.new
|
17
|
+
|
18
|
+
detailed.text = text
|
19
|
+
detailed.disposition = disposition
|
20
|
+
|
21
|
+
detailed.metadata = Metadata.example
|
22
|
+
|
23
|
+
detailed
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.text
|
27
|
+
Text::Detail.example
|
28
|
+
end
|
29
|
+
|
30
|
+
def self.disposition
|
31
|
+
CommentDisposition.example
|
32
|
+
end
|
33
|
+
|
34
|
+
def self.other_example
|
35
|
+
Other.example
|
36
|
+
end
|
37
|
+
|
38
|
+
module NoDisposition
|
39
|
+
def self.example
|
40
|
+
Detailed.example(disposition: :none)
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
module Other
|
45
|
+
def self.example
|
46
|
+
Detailed.example(text:, disposition:)
|
47
|
+
end
|
48
|
+
|
49
|
+
def self.text
|
50
|
+
Text::Detail.other_example
|
51
|
+
end
|
52
|
+
|
53
|
+
def self.disposition
|
54
|
+
CommentDisposition.other_example
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
module TestBenchBootstrap
|
2
|
+
module TestBench
|
3
|
+
class Session
|
4
|
+
module Controls
|
5
|
+
module Events
|
6
|
+
module Failed
|
7
|
+
def self.example(message: nil)
|
8
|
+
message ||= self.message
|
9
|
+
|
10
|
+
failed = Session::Events::Failed.new
|
11
|
+
|
12
|
+
failed.message = message
|
13
|
+
|
14
|
+
failed.metadata = Metadata.example
|
15
|
+
|
16
|
+
failed
|
17
|
+
end
|
18
|
+
|
19
|
+
def self.message
|
20
|
+
Message::Failure.example
|
21
|
+
end
|
22
|
+
|
23
|
+
def self.other_example
|
24
|
+
Other.example
|
25
|
+
end
|
26
|
+
|
27
|
+
module Other
|
28
|
+
def self.example
|
29
|
+
Failed.example(message:)
|
30
|
+
end
|
31
|
+
|
32
|
+
def self.message
|
33
|
+
Message::Failure.other_example
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,101 @@
|
|
1
|
+
module TestBenchBootstrap
|
2
|
+
module TestBench
|
3
|
+
class Session
|
4
|
+
module Controls
|
5
|
+
module Events
|
6
|
+
module FileExecuted
|
7
|
+
def self.example(result: nil, file: nil)
|
8
|
+
result ||= self.result
|
9
|
+
file ||= self.file
|
10
|
+
|
11
|
+
file_executed = Session::Events::FileExecuted.new
|
12
|
+
|
13
|
+
file_executed.file = file
|
14
|
+
file_executed.result = result
|
15
|
+
|
16
|
+
file_executed.metadata = Metadata.example
|
17
|
+
|
18
|
+
file_executed
|
19
|
+
end
|
20
|
+
|
21
|
+
def self.file
|
22
|
+
Path::File.example
|
23
|
+
end
|
24
|
+
|
25
|
+
def self.result
|
26
|
+
Result.example
|
27
|
+
end
|
28
|
+
|
29
|
+
def self.other_example
|
30
|
+
Other.example
|
31
|
+
end
|
32
|
+
|
33
|
+
module Other
|
34
|
+
def self.example
|
35
|
+
FileExecuted.example(result:, file:)
|
36
|
+
end
|
37
|
+
|
38
|
+
def self.result
|
39
|
+
Result.other_example
|
40
|
+
end
|
41
|
+
|
42
|
+
def self.file
|
43
|
+
Path::File.other_example
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
module Passed
|
48
|
+
def self.example
|
49
|
+
FileExecuted.example(result:)
|
50
|
+
end
|
51
|
+
|
52
|
+
def self.result
|
53
|
+
Session::Result.passed
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
module Failed
|
58
|
+
def self.example
|
59
|
+
FileExecuted.example(result:)
|
60
|
+
end
|
61
|
+
|
62
|
+
def self.result
|
63
|
+
Session::Result.failed
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
module Inert
|
68
|
+
def self.example
|
69
|
+
FileExecuted.example(result:)
|
70
|
+
end
|
71
|
+
|
72
|
+
def self.result
|
73
|
+
Session::Result.none
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
module Aborted
|
78
|
+
def self.example
|
79
|
+
FileExecuted.example(result:)
|
80
|
+
end
|
81
|
+
|
82
|
+
def self.result
|
83
|
+
Session::Result.aborted
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
module Incomplete
|
88
|
+
def self.example
|
89
|
+
FileExecuted.example(result:)
|
90
|
+
end
|
91
|
+
|
92
|
+
def self.result
|
93
|
+
Session::Result.incomplete
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
module TestBenchBootstrap
|
2
|
+
module TestBench
|
3
|
+
class Session
|
4
|
+
module Controls
|
5
|
+
module Events
|
6
|
+
module FileNotFound
|
7
|
+
def self.example(file: nil)
|
8
|
+
file ||= self.file
|
9
|
+
|
10
|
+
file_not_found = Session::Events::FileNotFound.new
|
11
|
+
|
12
|
+
file_not_found.file = file
|
13
|
+
|
14
|
+
file_not_found.metadata = Metadata.example
|
15
|
+
|
16
|
+
file_not_found
|
17
|
+
end
|
18
|
+
|
19
|
+
def self.file
|
20
|
+
Path::File.example
|
21
|
+
end
|
22
|
+
|
23
|
+
def self.other_example
|
24
|
+
Other.example
|
25
|
+
end
|
26
|
+
|
27
|
+
module Other
|
28
|
+
def self.example
|
29
|
+
FileNotFound.example(file:)
|
30
|
+
end
|
31
|
+
|
32
|
+
def self.file
|
33
|
+
Path::File.other_example
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
module TestBenchBootstrap
|
2
|
+
module TestBench
|
3
|
+
class Session
|
4
|
+
module Controls
|
5
|
+
module Events
|
6
|
+
module FileQueued
|
7
|
+
def self.example(file: nil)
|
8
|
+
file ||= self.file
|
9
|
+
|
10
|
+
file_queued = Session::Events::FileQueued.new
|
11
|
+
|
12
|
+
file_queued.file = file
|
13
|
+
|
14
|
+
file_queued.metadata = Metadata.example
|
15
|
+
|
16
|
+
file_queued
|
17
|
+
end
|
18
|
+
|
19
|
+
def self.file
|
20
|
+
Path::File.example
|
21
|
+
end
|
22
|
+
|
23
|
+
def self.other_example
|
24
|
+
Other.example
|
25
|
+
end
|
26
|
+
|
27
|
+
module Other
|
28
|
+
def self.example
|
29
|
+
FileQueued.example(file:)
|
30
|
+
end
|
31
|
+
|
32
|
+
def self.file
|
33
|
+
Path::File.other_example
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
module TestBenchBootstrap
|
2
|
+
module TestBench
|
3
|
+
class Session
|
4
|
+
module Controls
|
5
|
+
module Events
|
6
|
+
module Skipped
|
7
|
+
def self.example(message: nil)
|
8
|
+
if message == :none
|
9
|
+
message = nil
|
10
|
+
else
|
11
|
+
message ||= self.message
|
12
|
+
end
|
13
|
+
|
14
|
+
skipped = Session::Events::Skipped.new
|
15
|
+
|
16
|
+
skipped.message = message
|
17
|
+
|
18
|
+
skipped.metadata = Metadata.example
|
19
|
+
|
20
|
+
skipped
|
21
|
+
end
|
22
|
+
|
23
|
+
def self.message
|
24
|
+
Message::Skip.example
|
25
|
+
end
|
26
|
+
|
27
|
+
def self.other_example
|
28
|
+
Other.example
|
29
|
+
end
|
30
|
+
|
31
|
+
module Other
|
32
|
+
def self.example
|
33
|
+
Skipped.example(message:)
|
34
|
+
end
|
35
|
+
|
36
|
+
def self.message
|
37
|
+
Message::Skip.other_example
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
module NoMessage
|
42
|
+
def self.example
|
43
|
+
Skipped.example(message: :none)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,92 @@
|
|
1
|
+
module TestBenchBootstrap
|
2
|
+
module TestBench
|
3
|
+
class Session
|
4
|
+
module Controls
|
5
|
+
module Events
|
6
|
+
module TestFinished
|
7
|
+
def self.example(result: nil, title: nil)
|
8
|
+
result ||= self.result
|
9
|
+
|
10
|
+
if title == :none
|
11
|
+
title = nil
|
12
|
+
else
|
13
|
+
title ||= self.title
|
14
|
+
end
|
15
|
+
|
16
|
+
test_finished = Session::Events::TestFinished.new
|
17
|
+
|
18
|
+
test_finished.title = title
|
19
|
+
test_finished.result = result
|
20
|
+
|
21
|
+
test_finished.metadata = Metadata.example
|
22
|
+
|
23
|
+
test_finished
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.title
|
27
|
+
Title::Test.example
|
28
|
+
end
|
29
|
+
|
30
|
+
def self.result
|
31
|
+
Result.example
|
32
|
+
end
|
33
|
+
|
34
|
+
def self.other_example
|
35
|
+
Other.example
|
36
|
+
end
|
37
|
+
|
38
|
+
module Other
|
39
|
+
def self.example
|
40
|
+
TestFinished.example(result:, title:)
|
41
|
+
end
|
42
|
+
|
43
|
+
def self.result
|
44
|
+
Result.other_example
|
45
|
+
end
|
46
|
+
|
47
|
+
def self.title
|
48
|
+
Title::Test.other_example
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
module NoTitle
|
53
|
+
def self.example
|
54
|
+
TestFinished.example(title: :none)
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
module Passed
|
59
|
+
def self.example
|
60
|
+
TestFinished.example(result:)
|
61
|
+
end
|
62
|
+
|
63
|
+
def self.result
|
64
|
+
Session::Result.passed
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
module Failed
|
69
|
+
def self.example
|
70
|
+
TestFinished.example(result:)
|
71
|
+
end
|
72
|
+
|
73
|
+
def self.result
|
74
|
+
Session::Result.failed
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
module Aborted
|
79
|
+
def self.example
|
80
|
+
TestFinished.example(result:)
|
81
|
+
end
|
82
|
+
|
83
|
+
def self.result
|
84
|
+
Session::Result.aborted
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
module TestBenchBootstrap
|
2
|
+
module TestBench
|
3
|
+
class Session
|
4
|
+
module Controls
|
5
|
+
module Events
|
6
|
+
module TestStarted
|
7
|
+
def self.example(title: nil)
|
8
|
+
if title == :none
|
9
|
+
title = nil
|
10
|
+
else
|
11
|
+
title ||= self.title
|
12
|
+
end
|
13
|
+
|
14
|
+
test_started = Session::Events::TestStarted.new
|
15
|
+
|
16
|
+
test_started.title = title
|
17
|
+
|
18
|
+
test_started.metadata = Metadata.example
|
19
|
+
|
20
|
+
test_started
|
21
|
+
end
|
22
|
+
|
23
|
+
def self.title
|
24
|
+
Title::Test.example
|
25
|
+
end
|
26
|
+
|
27
|
+
def self.other_example
|
28
|
+
Other.example
|
29
|
+
end
|
30
|
+
|
31
|
+
module Other
|
32
|
+
def self.example
|
33
|
+
TestStarted.example(title:)
|
34
|
+
end
|
35
|
+
|
36
|
+
def self.title
|
37
|
+
Title::Test.other_example
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
module NoTitle
|
42
|
+
def self.example
|
43
|
+
TestStarted.example(title: :none)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|