mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2026-09-06 08:07:08 +00:00
Allow focused integration tests to be run from the GoLand UI again
This was broken recently by the improvements in #808.
This commit is contained in:
@@ -14,7 +14,14 @@ import (
|
||||
)
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
splitIntegrationTestsIntoBuckets(m)
|
||||
if os.Getenv("PINNIPED_TEST_GOLAND_RUNNER") != "true" {
|
||||
// When running integration tests from inside GoLand, do not modify them.
|
||||
// If the test gets nested under TestIntegrationSerial or the other groups,
|
||||
// then you cannot run/debug a focused integration test in GoLand because the
|
||||
// name of the test changes in a way that GoLand does not expect due to
|
||||
// the nesting.
|
||||
splitIntegrationTestsIntoBuckets(m)
|
||||
}
|
||||
os.Exit(m.Run())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user