Simple focus mechanism for tasty
|LTS Haskell 20.15:||1.0.1|
|Stackage Nightly 2023-03-20:||1.0.1|
|Latest on Hackage:||1.0.1|
Maintained by Jonas Carpay
This version can be pinned in stack with:
Module documentation for 1.0.1
Simple focus mechanism for
tasty, similar to
Mark the root of your test tree with
Then, if any of the subtrees of your test suite are marked with
focus, only those test trees will be run.
The intended use case is similar to
--pattern, but for quick
ghcid-based feedback loops.
focus will throw a deprecation warning, so that together with
-Werror you can check that you don’t accidentally leave tests focused on CI.
In this example, only
barTests will run. Removing either
withFocus will run the entire tree again.
main :: IO () main = defaultMain . withFocus $ testGroup "tests" [ fooTests , testGroup "subgroup" [ focus barTests , bazTests ] , quuxTests ]
- Expanded haddocks
- Added missing fields to cabal file
- Initial version