You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment, the integration tests are executed as separate tests using the maven-failsafe-plugin. We need to re-work this so that they are executed as a suite. This needs to be done so that we could be able to re-run the same integration tests against different environments. For example, the default profile for integration tests should be against a real Amazon S3. However, if we re-work these to be executed as a suite, we could then add another suite with the same tests, but for MinIO instead.
What we can do is:
Have all the integration tests that are connecting to S3 tagged using the @Tag("integration-test-s3") annotation.
Create separate test suites that have an @IncludeTags("integration-test-s3") annotation
Create an AmazonS3ITTestSuite.
Eventually, create additional test suites such as, for example, MinIOITTestSuite.
Make the maven-failsafe-plugin only execute the *ITSuite classes.
Tasks
The following tasks will need to be carried out:
Investigate whether it's possible to enable/trigger profiles for JUnit tests at a suite level.
Create a test suite for all the integration tests.
Make the maven-failsafe-plugin only execute *ITSuite-s.
We'll have to re-visit this topic once junit-team/junit5#744 (supposed to be fixed via junit-team/junit5#2416) have been impemented, so that we could drop the JUnit4 dependencies.
Task Description
At the moment, the integration tests are executed as separate tests using the
maven-failsafe-plugin
. We need to re-work this so that they are executed as a suite. This needs to be done so that we could be able to re-run the same integration tests against different environments. For example, the default profile for integration tests should be against a real Amazon S3. However, if we re-work these to be executed as a suite, we could then add another suite with the same tests, but for MinIO instead.What we can do is:
@Tag("integration-test-s3")
annotation.@IncludeTags("integration-test-s3")
annotationAmazonS3ITTestSuite
.MinIOITTestSuite
.maven-failsafe-plugin
only execute the*ITSuite
classes.Tasks
The following tasks will need to be carried out:
maven-failsafe-plugin
only execute*ITSuite
-s.Task Relationships
This task:
Stackoverflow Questions
Help
The text was updated successfully, but these errors were encountered: