-
-
Notifications
You must be signed in to change notification settings - Fork 657
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add MustPassRepeatedly integration test for config override
Signed-off-by: maxcleme <maxime.clement@docker.com>
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
...xtures/config_override_must_pass_repeatedly_fixture/config_override_fixture_suite_test.go
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 @@ | ||
package config_override_label_filter_fixture_test | ||
|
||
import ( | ||
"testing" | ||
|
||
. "github.com/onsi/ginkgo/v2" | ||
. "github.com/onsi/gomega" | ||
) | ||
|
||
func TestConfigOverrideFixture(t *testing.T) { | ||
RegisterFailHandler(Fail) | ||
suiteConfig, reporterConfig := GinkgoConfiguration() | ||
suiteConfig.MustPassRepeatedly = 10 | ||
RunSpecs(t, "ConfigOverrideFixture Suite", suiteConfig, reporterConfig) | ||
} | ||
|
||
var _ = Describe("tests", func() { | ||
It("suite config overrides decorator", MustPassRepeatedly(2), func() { | ||
Ω(CurrentSpecReport().MaxMustPassRepeatedly).Should(Equal(10)) | ||
}) | ||
}) |
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