tasty-travis-0.2.0.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 test reporter which functions as a drop-in replacement for defaultMainWithIngredients 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] -> TestTree -> IO () Source #

A Tasty test runner whose output can be controlled with a TravisConfig. Defaults to the regular console reporting when the TRAVIS environment variable is not set to "true".

Usage:

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.

Instances
Eq FoldGroup Source # 
Instance details
Show FoldGroup Source # 
Instance details

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.

Instances
Eq FoldWhen Source # 
Instance details
Show FoldWhen Source # 
Instance details

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.

Instances
Eq SummaryWhen Source # 
Instance details
Show SummaryWhen Source # 
Instance details