shouldi
shouldi copied to clipboard
Allow groups of tests to run under separate runner queues
We would like to be able to spin up a separate group. This approach will allow us to sparingly mock without losing associated concurrency for the rest of the tests.
For example, a user is building an API that needs a Twitter result set. Instead of retrieving the tweets within the test, a shouldi context marks the test family, indicating that those tests must be run in a separate test group:
with "mocked tweets" do
@test_group "TwitterMock"
setup...
should...
end
This test will be spun up and run in a separate group outside of the default tests. This approach will allow groupings for any types of tests requiring compilation.