Hi all,
I have some facts that use with-state-changes ('before :contents' and 'after :contents'). The facts look like this:
(fact-group
:integration
(with-state-changes [(before :contents (setup-stateful-thing))
(after :contents (teardown-stateful-thing))]
(fact "some fact"
...)
(fact "some other fact"
...)))
These are integration tests with some costly setup and teardown that I don't typically want to execute. When I run my tests, by default these tests are filtered out (filter: -integration) however I can see from the logs that with-state-changes before and after a still running, even when the filter is -integration.
I assume the problem here is that fact-group simply passes on metadata to its facts, and it's the facts themselves that are filtered out.
Is there any way to have setup/teardown for integration/acceptance tests (or any group/category of tests), and stop this from running when one needs to run some other group of tests?
Cheers