tasty-test-reporter-0.1.1.4: Producing JUnit-style XML test reports.

Safe HaskellNone
LanguageHaskell2010

Test.Tasty.Runners.Reporter

Contents

Description

An ingredient for tasty that prints a summary and outputs junit xml that works with jenkins.

Usage:

    import Test.Tasty
    import Test.Tasty.HUnit
    import qualified Test.Tasty.Runners.Reporter as Reporter

    main = defaultMainWithIngredients [Reporter.ingredient] tests

    tests :: TestTree

Example output:

    λ cabal test --test-show-details=always
    ...
    Test suite spec: RUNNING...
    ↓ Unit tests
    ✗ List comparison (smaller length)

    test/Main.hs:19:
    expected: LT
     but got: GT


    ↓ Unit tests
    ↓ sub group
    ✗ foo

    Test threw an exception
    user error (asdf)



    TEST RUN FAILED
    ^^^^^^^^^^^^^^^

    Duration:  0.000s
    Passed:    1
    Failed:    2
Synopsis

Documentation

ingredient :: Ingredient Source #

Ingredient for defaultMainWithIngredients Runs all tests and outputs a summary as well as the failing tests. Optionally takes `--xml=report.xml` and outputs junit xml.

Support for skipping tests (example usage coming soon)

Support for running only one test (example usage coming soon)

data OnlyTestResult Source #

Types for running only one test. (example coming soon)