@hackage / tasty-stats

Collect statistics of your Tasty testsuite

Latest0.2.0.4

About

Metadata

  • Last updated , by minad
  • License MIT
  • Categories Testing
  • Maintained by: Daniel Mendler <mail@daniel-mendler.de>

  • Lottery factor: 0

Links

Installation

Tested Compilers

  1. 7.10.3

Readme

tasty-stats: Collect statistics of your Tasty test suite in a CSV file

Hackage Build Status

This package is useful to collect statistics of your Tasty test suite in a CSV file. Since timing information and the git commit is collected, the data can be used to find performance regressions between commits.

Use the Test.Tasty.Stats.consoleStatsReporter ingredient:

main = defaultMainWithIngredients (Test.Tasty.Stats.consoleStatsReporter : defaultIngredients) testTree

Then you can pass the option --stats stats.csv to the testsuite. Currently the following information is collected in this order:

idx, name, time, result, gitdate, gitcommit, date, nthreads, description

With tasty-auto:

-- test/test.hs
{-# OPTIONS_GHC -F -pgmF tasty-auto -optF Test.Tasty.Stats.consoleStatsReporter #-}