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

Add --tags=$TAG1,$TAG2 #561

Open
bphenriques opened this issue Jul 22, 2022 · 0 comments
Open

Add --tags=$TAG1,$TAG2 #561

bphenriques opened this issue Jul 22, 2022 · 0 comments

Comments

@bphenriques
Copy link

Hello,

In my use-case I want to have two set of integration tests:

  1. Ones that I can run entirely locally. Not tags set.
  2. Others that require connecting to a real testing environment. Tests tagged with uat-integration.

Given that 2. has a non-trivial local setup, I want to exclude those tags by default from the tests:

IntegrationTest / testOptions += Tests.Argument("--exclude-tags=uat-integration"),

Now, if I want to run them on-demand, I would like to run as follows:

$ sbt "it:testOnly -- --include-tags=uat-integration
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