ppx_dryunit

AuthorGerson Moraes
Homepagehttps://github.com/gersonmoraes/dryunit
Issue Trackerhttps://github.com/gersonmoraes/dryunit
Maintainergerson.xp@gmail.com
Dependencies
&cppo
jbuilder
ocaml-migrate-parsetree
ppx_tools_versioned
Availableocaml-version >= "4.02.3" & ocaml-version < "4.06"
PublishedOct 19, 2017
Source [http] https://github.com/gersonmoraes/dryunit/archive/0.4.0.tar.gz
14f1029a3c628eeaef50c025b454215e
StatisticsInstalled 2 times last month.
Edithttps://github.com/ocaml/opam-repository/tree/master/packages/ppx_dryunit/ppx_dryunit.0.4.0/opam

A detection tool for traditional unit testing in OCaml

Dryunit is a detection tool for traditional test suites. This is an optional extension that provides similar functionallity as the main package and command line dryunit (which is the recommended way to get started).

Installation

opam install ppx_dryunit

Usage

It's activated appending this to the end of your tests/main.ml:

let () = [%dryunit]

Custom definitions are given using a record. All fields are optional and might be in any order.

let () =
  [%dryunit
    { cache_dir   = ".dryunit"
    ; cache       = true
    ; framework   = "alcotest"
    ; ignore      = ""
    ; filter      = ""
    ; detection   = "file"
    ; ignore_path = "self"
    }
  ]

For more information, checkout the repository.

Necessary for
dryunit
< 0.4.0