Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/minad/tasty-stats
Collect statistics of your Tasty testsuite
https://github.com/minad/tasty-stats
benchmark haskell statistics tasty testing
Last synced: 24 days ago
JSON representation
Collect statistics of your Tasty testsuite
- Host: GitHub
- URL: https://github.com/minad/tasty-stats
- Owner: minad
- License: mit
- Created: 2017-02-12T03:54:31.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-01T21:02:57.000Z (over 5 years ago)
- Last Synced: 2024-05-02T00:32:50.465Z (6 months ago)
- Topics: benchmark, haskell, statistics, tasty, testing
- Language: Haskell
- Size: 28.3 KB
- Stars: 7
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tasty-stats: Collect statistics of your Tasty test suite in a CSV file
[![Hackage](https://img.shields.io/hackage/v/tasty-stats.svg)](https://hackage.haskell.org/package/tasty-stats)
[![Build Status](https://secure.travis-ci.org/minad/tasty-stats.png?branch=master)](http://travis-ci.org/minad/tasty-stats)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:
``` haskell
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:
``` haskell
-- test/test.hs
{-# OPTIONS_GHC -F -pgmF tasty-auto -optF Test.Tasty.Stats.consoleStatsReporter #-}
```