@@ -5,6 +5,14 @@ jasmine_node_test(
5
5
srcs = ["foo_spec.js" ],
6
6
)
7
7
8
+ # Verify that a bootstrap script does not break the test
9
+ jasmine_node_test (
10
+ name = "underscore_spec_bootstrap_test" ,
11
+ srcs = ["foo_spec.js" ],
12
+ data = ["bootstrap.js" ],
13
+ templated_args = ["--node_options=--require=$(rlocation $(location :bootstrap.js))" ],
14
+ )
15
+
8
16
jasmine_node_test (
9
17
name = "underscore_test_test" ,
10
18
srcs = ["foo_test.js" ],
@@ -26,13 +34,42 @@ jasmine_node_test(
26
34
shard_count = 3 ,
27
35
)
28
36
37
+ # Verify that a bootstrap script does not break a sharded test
38
+ jasmine_node_test (
39
+ name = "sharding_bootstrap_test" ,
40
+ srcs = ["sharded_test.js" ],
41
+ data = ["bootstrap.js" ],
42
+ shard_count = 3 ,
43
+ templated_args = ["--node_options=--require=$(rlocation $(location :bootstrap.js))" ],
44
+ )
45
+
29
46
jasmine_node_test (
30
47
name = "failing_sharding_test" ,
31
48
srcs = ["failing_sharded_test.js" ],
32
49
expected_exit_code = 3 ,
33
50
shard_count = 2 ,
34
51
)
35
52
53
+ # Verify that a bootstrap script does not break a failing sharded test
54
+ jasmine_node_test (
55
+ name = "failing_sharding_bootstrap_test" ,
56
+ srcs = ["failing_sharded_test.js" ],
57
+ data = ["bootstrap.js" ],
58
+ expected_exit_code = 3 ,
59
+ shard_count = 2 ,
60
+ templated_args = ["--node_options=--require=$(rlocation $(location :bootstrap.js))" ],
61
+ )
62
+
63
+ # Verify that a bootstrap script does not break a failing sharded test
64
+ jasmine_node_test (
65
+ name = "failing_sharding_bootstrap_fail_test" ,
66
+ srcs = ["failing_sharded_test.js" ],
67
+ data = ["bootstrap_fail.js" ],
68
+ expected_exit_code = 33 ,
69
+ shard_count = 2 ,
70
+ templated_args = ["--node_options=--require=$(rlocation $(location :bootstrap_fail.js))" ],
71
+ )
72
+
36
73
jasmine_node_test (
37
74
name = "filtering_test" ,
38
75
srcs = ["filtering_test.js" ],
@@ -88,12 +125,32 @@ jasmine_node_test(
88
125
tags = ["fix-windows" ],
89
126
)
90
127
128
+ # Verify that the error code is propogated out from a failing spec
91
129
jasmine_node_test (
92
130
name = "fail_test" ,
93
131
srcs = ["fail.spec.js" ],
94
132
expected_exit_code = 3 ,
95
133
)
96
134
135
+ # Verify that the error code is propogated out from a failing spec
136
+ # if there is a successful bootstrap script
137
+ jasmine_node_test (
138
+ name = "fail_bootstrap_test" ,
139
+ srcs = ["fail.spec.js" ],
140
+ data = ["bootstrap.js" ],
141
+ expected_exit_code = 3 ,
142
+ templated_args = ["--node_options=--require=$(rlocation $(location :bootstrap.js))" ],
143
+ )
144
+
145
+ # Verify that the error code is propogated out from a failing bootstrap script
146
+ jasmine_node_test (
147
+ name = "fail_bootstrap_fail_test" ,
148
+ srcs = ["fail.spec.js" ],
149
+ data = ["bootstrap_fail.js" ],
150
+ expected_exit_code = 33 ,
151
+ templated_args = ["--node_options=--require=$(rlocation $(location :bootstrap_fail.js))" ],
152
+ )
153
+
97
154
jasmine_node_test (
98
155
name = "stack_test" ,
99
156
srcs = ["stack.spec.js" ],
0 commit comments