k1LoW/awspec

Filter tests (Run chosen tests only)

xmik opened this issue · 1 comments

xmik commented

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.

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.