@@ -39,7 +39,7 @@ scala_specs2_junit_test_test_filter_one_test(){
3939 local output=$( bazel test \
4040 --nocache_test_results \
4141 --test_output=streamed \
42- ' --test_filter=scalarules.test.junit.specs2.JunitSpecs2Test#specs2 tests should ::run smoothly in bazel$' \
42+ ' --test_filter=scalarules.test.junit.specs2.JunitSpecs2Test#specs2 tests::run smoothly in bazel$' \
4343 test:Specs2Tests)
4444 local expected=" + run smoothly in bazel"
4545 local unexpected=" + not run smoothly in bazel"
@@ -90,7 +90,7 @@ scala_specs2_junit_test_test_filter_exact_match(){
9090 local output=$( bazel test \
9191 --nocache_test_results \
9292 --test_output=streamed \
93- ' --test_filter=scalarules.test.junit.specs2.JunitSpecs2AnotherTest#other specs2 tests should ::run from another test$' \
93+ ' --test_filter=scalarules.test.junit.specs2.JunitSpecs2AnotherTest#other specs2 tests::run from another test$' \
9494 test:Specs2Tests)
9595 local expected=" + run from another test"
9696 local unexpected=" + run from another test 2"
@@ -112,7 +112,7 @@ scala_specs2_junit_test_test_filter_exact_match_unsafe_characters(){
112112 local output=$( bazel test \
113113 --nocache_test_results \
114114 --test_output=streamed \
115- ' --test_filter=scalarules.test.junit.specs2.JunitSpec2RegexTest#\Qtests with unsafe characters should ::2 + 2 != 5\E$' \
115+ ' --test_filter=scalarules.test.junit.specs2.JunitSpec2RegexTest#\Qtests with unsafe characters::2 + 2 != 5\E$' \
116116 test:Specs2Tests)
117117 local expected=" + 2 + 2 != 5"
118118 local unexpected=" + work escaped (with regex)"
@@ -134,7 +134,7 @@ scala_specs2_junit_test_test_filter_exact_match_escaped_and_sanitized(){
134134 local output=$( bazel test \
135135 --nocache_test_results \
136136 --test_output=streamed \
137- ' --test_filter=scalarules.test.junit.specs2.JunitSpec2RegexTest#\Qtests with unsafe characters should ::work escaped [with regex]\E$' \
137+ ' --test_filter=scalarules.test.junit.specs2.JunitSpec2RegexTest#\Qtests with unsafe characters::work escaped [with regex]\E$' \
138138 test:Specs2Tests)
139139 local expected=" + work escaped (with regex)"
140140 local unexpected=" + 2 + 2 != 5"
@@ -156,7 +156,7 @@ scala_specs2_junit_test_test_filter_match_multiple_methods(){
156156 local output=$( bazel test \
157157 --nocache_test_results \
158158 --test_output=streamed \
159- ' --test_filter=scalarules.test.junit.specs2.JunitSpecs2AnotherTest#other specs2 tests should ::(\Qrun from another test\E|\Qrun from another test 2\E)$' \
159+ ' --test_filter=scalarules.test.junit.specs2.JunitSpecs2AnotherTest#other specs2 tests::(\Qrun from another test\E|\Qrun from another test 2\E)$' \
160160 test:Specs2Tests)
161161 local expected=(
162162 " + run from another test"
@@ -222,7 +222,7 @@ scala_specs2_all_tests_show_in_the_xml(){
222222 --test_output=streamed \
223223 ' --test_filter=scalarules.test.junit.specs2.JunitSpecs2Test#' \
224224 test:Specs2Tests
225- matches=$( grep -c -e " testcase name='specs2 tests should ::run smoothly in bazel'" -e " testcase name='specs2 tests should ::not run smoothly in bazel'" ./bazel-testlogs/test/Specs2Tests/test.xml)
225+ matches=$( grep -c -e " testcase name='specs2 tests::run smoothly in bazel'" -e " testcase name='specs2 tests::not run smoothly in bazel'" ./bazel-testlogs/test/Specs2Tests/test.xml)
226226 if [ $matches -eq 2 ]; then
227227 return 0
228228 else
@@ -236,9 +236,9 @@ scala_specs2_only_filtered_test_shows_in_the_xml(){
236236 bazel test \
237237 --nocache_test_results \
238238 --test_output=streamed \
239- ' --test_filter=scalarules.test.junit.specs2.JunitSpecs2Test#specs2 tests should ::run smoothly in bazel$' \
239+ ' --test_filter=scalarules.test.junit.specs2.JunitSpecs2Test#specs2 tests::run smoothly in bazel$' \
240240 test:Specs2Tests
241- matches=$( grep -c -e " testcase name='specs2 tests should ::run smoothly in bazel'" -e " testcase name='specs2 tests should ::not run smoothly in bazel'" ./bazel-testlogs/test/Specs2Tests/test.xml)
241+ matches=$( grep -c -e " testcase name='specs2 tests::run smoothly in bazel'" -e " testcase name='specs2 tests::not run smoothly in bazel'" ./bazel-testlogs/test/Specs2Tests/test.xml)
242242 if [ $matches -eq 1 ]; then
243243 return 0
244244 else
@@ -253,10 +253,10 @@ scala_specs2_only_failed_test_shows_in_the_xml(){
253253 bazel test \
254254 --nocache_test_results \
255255 --test_output=streamed \
256- ' --test_filter=scalarules.test.junit.specs2.SuiteWithOneFailingTest#specs2 tests should ::fail$' \
256+ ' --test_filter=scalarules.test.junit.specs2.SuiteWithOneFailingTest#specs2 tests::fail$' \
257257 test_expect_failure/scala_junit_test:specs2_failing_test
258258 echo " got results"
259- matches=$( grep -c -e " testcase name='specs2 tests should ::fail'" -e " testcase name='specs2 tests should ::succeed'" ./bazel-testlogs/test_expect_failure/scala_junit_test/specs2_failing_test/test.xml)
259+ matches=$( grep -c -e " testcase name='specs2 tests::fail'" -e " testcase name='specs2 tests::succeed'" ./bazel-testlogs/test_expect_failure/scala_junit_test/specs2_failing_test/test.xml)
260260 if [ $matches -eq 1 ]; then
261261 return 0
262262 else
0 commit comments