BSD-3-Clause licensed by Jonas Carpay
Maintained by Jonas Carpay
This version can be pinned in stack with:tasty-focus-1.0.1@sha256:10224819825b7ba8fb6114e3bd7c8b506b33a4adff8c93eef3db0028b9206a2c,1352

Module documentation for 1.0.1

Depends on 3 packages(full list with versions):

tasty-focus

tasty-focus on hackage tasty-focus on Stackage Nightly

Simple focus mechanism for tasty, similar to hspec.

Mark the root of your test tree with withFocus. 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. Using focus will throw a deprecation warning, so that together with -Werror you can check that you don’t accidentally leave tests focused on CI.

Example

In this example, only barTests will run. Removing either focus or withFocus will run the entire tree again.

main :: IO ()
main = defaultMain . withFocus $
  testGroup "tests"
    [ fooTests
    , testGroup "subgroup"
      [ focus barTests
      , bazTests
	  ]
	, quuxTests
    ]

Changes

Changelog

1.0.1

[Changed]

  • Expanded haddocks
  • Added missing fields to cabal file

1.0.0

[Added]

  • Initial version