0 Replies Latest reply on Sep 26, 2017 8:37 PM by Richard Robinson

    @SpringConfiguration and -Dspring.profiles.active (Arquillian spring extension)

    Richard Robinson Newbie

      I've got an Arquillian test annotated with @SpringConfiguration({"application-context.xml"}) and it works fine.

       

      In the application-context.xml, I've got some profiles. I want to be able to pass the -Dspring.profiles.active=whatever to the application context, but it does not seem work. (My work around is to change the profile manually before I run the test).

       

      What's the right way to pass -Dspring.profiles.active via @SpringConfiguration?