I am trying to use Localstack to emulate AWS in my integration tests. The authors instruct us to integrate Localstack with our Java tests as follows:
import cloud.localstack.LocalstackTestRunner;
import cloud.localstack.TestUtils;
@RunWith(LocalstackTestRunner.class)
public class MyCloudAppTest {
However, my cucumber test is as follows:
@RunWith(Cucumber.class)
@CucumberOptions( monochrome = true,
features = "src/test/resources/",
glue = "com/mydomain/services" )
public class MyFeatureTest {
}
Since I cannot have two RunWith annotations, can anyone suggest an alternative to have both Localstack and cucumber for testing?
Thank you for your help.