tasty-travis-0.1.2: Fancy Travis CI output for tasty tests.

Copyright(C) 2017 Merijn Verstraaten
LicenseBSD-style (see the file LICENSE)
MaintainerMerijn Verstraaten <merijn@inconsistent.nl>
Stabilityexperimental
Portabilityhaha
Safe HaskellTrustworthy
LanguageHaskell2010

Test.Tasty.Travis

Description

Travis CI support for tasty.

This module provides a tasty Ingredient which functions as a drop-in replacement for the consoleTestReporter from tasty. It detects whether the "TRAVIS" environment variable is set to "true". If so, it produces output as configured. If not, it falls back to the consoleTestReporter.

Synopsis

Documentation

travisTestReporter :: TravisConfig -> Ingredient Source #

Create a Tasty Ingredient from a TravisConfig. Defaults to the regular console output when the TRAVIS environment variable is not set to "true".

Usage:

defaultMainWithIngredients [listingTests, travisTestReporter yourConfig] yourTestTree

data TravisConfig Source #

Configuration for the output generated on Travis CI.

Constructors

TravisConfig 

Fields

defaultConfig :: TravisConfig Source #

Default Travis configuration. Coloured output. Folds all successes away. Adds summaries for folds with failures (which don't happen in this config).

data FoldGroup Source #

Control which parts of the test tree are folded away.

Constructors

FoldMoreThan Int

Fold groups with more than N entries (groups or tests).

FoldBelow Int

Fold groups more than N levels from the root.

FoldTop Int

Fold groups N or less levels from the root.

FoldAll

Fold all groups.

data FoldWhen Source #

Control when the tests/groups specified by FoldGroup are folded.

Constructors

FoldNever

Never fold output.

FoldSuccess

Fold all groups that have 0 failures.

FoldAlways

Always fold groups.

data SummaryWhen Source #

Control when a summary is printed before a fold.

Constructors

SummaryNever

Never print summaries.

SummaryFailures

Print summaries before folds with failures.

SummaryAlways

Always print summaries before folds.

listingTests :: Ingredient #

The ingredient that provides the test listing functionality