forked from bazelbuild/rules_scala
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return resource's short_path when fail to find relative (bazelbuild#1010
- Loading branch information
David Haxton
authored and
Andre Rocha
committed
Jul 6, 2020
1 parent
045ae94
commit 2316e4a
Showing
4 changed files
with
31 additions
and
3 deletions.
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
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 @@ | ||
package scalarules.test | ||
|
||
class ScalaTestResourcesFromLocalTargetTest extends org.scalatest.FlatSpec { | ||
"scala_test's resources when referencing local target" should | ||
"assert that local target is not placed in bazel-out, but rather next to the packaged code" in { | ||
assert(getClass.getResource("/bazel-out/darwin-fastbuild/bin/test/py_resource_binary") == null) | ||
assert(getClass.getResource("/test/py_resource_binary") != null) | ||
} | ||
} |
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 @@ | ||
# Empty file just need to be used for reference |