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

Filter tests (Run chosen tests only) #539

Open
xmik opened this issue Jul 6, 2021 · 1 comment
Open

Filter tests (Run chosen tests only) #539

xmik opened this issue Jul 6, 2021 · 1 comment

Comments

@xmik
Copy link

xmik commented Jul 6, 2021

It would be great if it was possible to only run a chosen set of tests.

Thanks to that we could test multiple AWS Accounts, one after another.

Workaround

A workaround is to split tests by AWS Account into separate tests files, and ensure that only the tests file we want to currently use, is put in the spec/ directory.

I'm curious if there is some other solution.

@glasswalk3r
Copy link
Contributor

You can rely on RSpec for that. RSpec is the framework awspec is built upon.
You can define metadata to your specs, then use the --tag parameter to select just what you want.
Besides that, you might want to try using only --pattern.

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

2 participants