I have begun to use cucumber tests for my Spring application. I set active Spring profile by passing a JVM argument spring.profiles.active=testProfile
.
Is there any way to do this programmatically? Something like:
@RunWith(Cucumber.class)
@Cucumber.Options(...)
@ActiveProfiles("testProfile")
public class MyCucumberTest
Using cucumber 1.1.6