File: dune-project

package info (click to toggle)
ocaml-alcotest 1.9.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,436 kB
  • sloc: ml: 3,407; ansic: 125; javascript: 19; makefile: 14
file content (98 lines) | stat: -rw-r--r-- 2,681 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
(lang dune 3.0)
(implicit_transitive_deps false)
(generate_opam_files true)

(name alcotest)
(source (github mirage/alcotest))
(license ISC)
(authors "Thomas Gazagnaire")
(maintainers "thomas@gazagnaire.org")

(package
 (name alcotest)
 (synopsis "Alcotest is a lightweight and colourful test framework")
 (documentation "https://mirage.github.io/alcotest")
 (description "\
Alcotest exposes simple interface to perform unit tests. It exposes
a simple TESTABLE module type, a check function to assert test
predicates and a run function to perform a list of unit -> unit
test callbacks.

Alcotest provides a quiet and colorful output where only faulty runs
are fully displayed at the end of the run (with the full logs ready to
inspect), with a simple (yet expressive) query language to select the
tests to run.
")
 (depends
  (ocaml (>= 4.08))
  (fmt (>= 0.8.7))
  astring
  (cmdliner (>= 1.2.0))
  (re (>= 1.7.2))
  stdlib-shims
  (uutf (>= 1.0.1))
  ocaml-syntax-shims)
 (conflicts
  (result (< 1.5)) ;; Ensure `Result.result` = `Stdlib.result` when possible
  (js_of_ocaml-compiler (< 5.8)) ;; requirement for the js stubs
  ))

(package
 (name alcotest-async)
 (synopsis "Async-based helpers for Alcotest")
 (description "Async-based helpers for Alcotest")
 (documentation "https://mirage.github.io/alcotest")
 (depends
  (re :with-test)
  (fmt :with-test)
  (cmdliner (and :with-test (>= 1.2.0)))
  (core (>= v0.16.0))
  (core_unix (>= v0.16.0))
  base
  async_kernel
  (ocaml (>= 4.14.0))
  (alcotest (= :version))
  (async (>= v0.16.0))
  (async_unix (>= v0.16.0))))

(package
 (name alcotest-lwt)
 (synopsis "Lwt-based helpers for Alcotest")
 (description "Lwt-based helpers for Alcotest")
 (documentation "https://mirage.github.io/alcotest")
 (depends
  (re :with-test)
  (cmdliner (and :with-test (>= 1.2.0)))
  fmt
  (ocaml (>= 4.08.0))
  (alcotest (= :version))
  lwt
  logs))

(package
 (name alcotest-mirage)
 (synopsis "Mirage implementation for Alcotest")
 (description "Mirage implementation for Alcotest")
 (documentation "https://mirage.github.io/alcotest")
 (depends
  (re :with-test)
  (cmdliner (and :with-test (>= 1.2.0)))
  fmt
  (ocaml (>= 4.08.0))
  (alcotest (= :version))
  (mirage-clock (>= 2.0.0))
  duration
  lwt
  logs))

(package
 (name alcotest-js)
 (synopsis "Virtual package containing optional JavaScript dependencies for Alcotest")
 (description "Virtual package containing optional JavaScript dependencies for Alcotest")
 (documentation "https://mirage.github.io/alcotest")
 (allow_empty)
 (depends
  (alcotest (= :version))
  (js_of_ocaml-compiler (>= 3.11.0))
  (fmt (and :with-test (>= 0.8.7)))
  (cmdliner (and :with-test (>= 1.2.0)))))