-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
translate: handle dependencies with broken tests
Gently get packages.Load to only load tests that we care about. For etcd, and perhaps it helps with build performance as well.
- Loading branch information
1 parent
4041f68
commit a00216b
Showing
2 changed files
with
95 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# This tests verifies that broken tests in dependencies are ignored. | ||
|
||
exec gosim test -v . | ||
stdout Hello | ||
|
||
! exec gosim test -v ./bad | ||
stderr badmarkerhere | ||
|
||
-- ok_test.go -- | ||
package good | ||
|
||
import ( | ||
"testing" | ||
|
||
"test/bad" | ||
) | ||
|
||
func TestDeps(t *testing.T) { | ||
t.Log(bad.Public) | ||
} | ||
-- bad/fine.go -- | ||
package bad | ||
|
||
var Public = "Hello" | ||
|
||
-- bad/bad_test.go -- | ||
package bad_test | ||
|
||
badmarkerhere |
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