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
{{ message }}
Repository navigation
Introduce support for executing a test class with different sets of profiles [SPR-16302] #20849
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.
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 junit-team/junit-framework#871).
Activity
spring-projects-issues commentedon Dec 31, 2017
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 junit-team/junit-framework#871).spring-projects-issues commentedon Jan 2, 2018
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.