-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MTSRE-298] Refactor integration test suite #99
[MTSRE-298] Refactor integration test suite #99
Conversation
Skipping CI for Draft Pull Request. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mayankshah1607 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest |
1 similar comment
/retest |
/hold |
Signed-off-by: Mayank Shah <[email protected]>
/retest |
2 similar comments
/retest |
/retest |
/retest |
1 similar comment
/retest |
/hold |
Signed-off-by: Mayank Shah <[email protected]>
Signed-off-by: Mayank Shah <[email protected]>
Signed-off-by: Mayank Shah <[email protected]>
Signed-off-by: Mayank Shah <[email protected]>
Signed-off-by: Mayank Shah <[email protected]>
Signed-off-by: Mayank Shah <[email protected]>
/lgtm Awesome work! |
/unhold |
This PR introduces the
testify/suite
library for integration tests. This mechanism allows us to group theses tests into a commonintegrationTestSuite
and add proper setup and teardown for it.SetupSuite
andTeardownSuite
methods for the test suitecatalog_source_test.go
,namespaces_test.go
, andsubscription_test.go
into a single test with each of them as a subtest inaddon_test.go
integration/
package to adapt to thesuite
libraryAddon
object declarations into re-usable fixtures infixtures_test.go
, thereby removing redundantAddon
object initializationsRemoval of parallel test execution
This PR also removes parallel execution of tests because
testify/suite
has poor support for parallel test execution - stretchr/testify#187 . Running tests within a test suite in parallel causes the following problems: