Manuel Jordan opened SPR-16302 and commented
Hello Spring Team
Consider to add a new feature for Testing support with the purpose to have just one Spring Test class to be tested many times with a different set of profiles, it for each set.
More details in the link from SO.
Thank You.
Affects: 4.3.10
Reference URL: https://stackoverflow.com/questions/47816959/testing-one-spring-test-class-for-many-different-set-of-profiles
Comment From: spring-projects-issues
Sam Brannen commented
A feature such as the one suggested here has been requested multiple times over the years.
There is, however, no simple way to implement such a feature since the testing frameworks supported by the Spring TestContext Framework (i.e., JUnit 4, JUnit Jupiter, and TestNG) do not provide such a mechanism.
In any case, it is likely worth looking into a solution that may work with JUnit 4 (via a custom Runner
) or with JUnit Jupiter (pending implementation of the feature proposed in https://github.com/junit-team/junit5/issues/871).
Comment From: spring-projects-issues
Manuel Jordan commented
Thanks by the information. I invite you to check again my post through SO. I wrote my own the solution, is simple in someway.