forked from higherkindness/rules_scala
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from masonpachner-lucid/lucid-master
Enable -s arg for selenium test running
- Loading branch information
Showing
5 changed files
with
63 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
load("@rules_scala_annex//rules:scala.bzl", "scala_library", "scala_test") | ||
|
||
scala_test( | ||
name = "testrunnertest", | ||
srcs = glob(["*.scala"]), | ||
deps = [ | ||
"@annex_test//:org_specs2_specs2_common_2_13", | ||
"@annex_test//:org_specs2_specs2_core_2_13", | ||
"@annex_test//:org_specs2_specs2_matcher_2_13", | ||
], | ||
) | ||
|
||
scala_library( | ||
name = "aatestrunner", | ||
srcs = glob(["*.scala"]), | ||
deps = [ | ||
"@annex_test//:org_specs2_specs2_common_2_13", | ||
"@annex_test//:org_specs2_specs2_core_2_13", | ||
"@annex_test//:org_specs2_specs2_matcher_2_13", | ||
], | ||
) |
13 changes: 13 additions & 0 deletions
13
tests/test-frameworks/testrunner/BadTestThatIsFilteredOut.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package annex.specs2 | ||
|
||
import org.specs2.mutable.Specification | ||
|
||
object BadTestThatIsFilteredOut extends Specification { | ||
|
||
"this" should { | ||
"will not pass" in { | ||
true must_== false | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package annex.specs2 | ||
|
||
import org.specs2.mutable.Specification | ||
|
||
object TestRunnerSpec extends Specification { | ||
|
||
"args" should { | ||
"be parsed" in { | ||
true must_== true | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash -e | ||
. "$(dirname "$0")"/../../common.sh | ||
|
||
# `bazel test :testrunnertest`` will fail because BadTestThatIsFilteredOut fails | ||
# This test makes sure that we can filter a target to just a specific test | ||
|
||
bazel test --test_arg=-s --test_arg=TestRunnerSpec -- :testrunnertest | ||
|
||
|