Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to run each Feature/Scenario with a fresh quarkus app #10

Open
lburgazzoli opened this issue Oct 4, 2021 · 0 comments
Open

Allow to run each Feature/Scenario with a fresh quarkus app #10

lburgazzoli opened this issue Oct 4, 2021 · 0 comments

Comments

@lburgazzoli
Copy link
Contributor

With standard quarkus tests, is it possible to configure profiles and get the quarkus app to be restarted when the profile changes.

It would be nice to have a way to configure the lifecycle of the quarkus app to get it bound to the test entire suite, the features or scenarios so as example, each feature would trigger the re-deploy of the quarkus app.

As today, the only way to achieve that is by creating a number of tests class where each one explicitly configures the features to include, like:

@CucumberOptions(features = { "classpath:My.feature"  })
@TestProfile(MyTest.Profile.class)
public class MyTest extends CucumberQuarkusTest {
    public static class Profile implements QuarkusTestProfile {
        @Override
        public Map<String, String> getConfigOverrides() {
            return Map.of(
                "test.namespace", uid());
        }
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant