tasty-rerun-1.1.15: Rerun only tests which failed in a previous test run

Safe HaskellNone
LanguageHaskell2010

Test.Tasty.Ingredients.Rerun

Synopsis

Documentation

rerunningTests :: [Ingredient] -> Ingredient Source #

This Ingredient transformer allows to control which tests to run depending on their previous outcomes. For example, you can rerun only failing tests or only new tests. The behaviour is controlled by command-line options:

  • --rerun-update

    Update the log file to reflect latest test outcomes.

  • --rerun-filter CATEGORIES

    Read the log file and rerun only tests from a given comma-separated list of categories: failures, exceptions, new, successful. If this option is omitted or the log file is missing, rerun everything.

  • --rerun-log-file FILE

    Location of the log file (default: .tasty-rerun-log).

Usage example:

import Test.Tasty
import Test.Tasty.Runners
import Test.Tasty.Ingredients.Rerun

main :: IO ()
main =
  defaultMainWithIngredients
    [ rerunningTests [ listingTests, consoleTestReporter ] ]
    tests

tests :: TestTree
tests = undefined