forked from ocaml/opam-repository
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[new release] alcotest, alcotest-async, alcotest-mirage and alcotest-…
…lwt (1.4.0) CHANGES: - Add `?here` and `?pos` arguments to the test assertion functions. These can be used to pass information about the location of the call-site, which is displayed in failing test output. (mirage/alcotest#291, @craigfe) - Add a pretty-printer for the exception raised by `Alcotest.check` and related functions. This allows them to be used outside of an Alcotest test runner for making general assertions. (mirage/alcotest#296, @craigfe) - Add `--bail` option (and corresponding `ALCOTEST_BAIL` environment variable), which causes Alcotest to terminate after the first test failure. (mirage/alcotest#298, @craigfe)
- Loading branch information
Showing
4 changed files
with
188 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
opam-version: "2.0" | ||
synopsis: "Async-based helpers for Alcotest" | ||
description: "Async-based helpers for Alcotest" | ||
maintainer: ["thomas@gazagnaire.org"] | ||
authors: ["Thomas Gazagnaire"] | ||
license: "ISC" | ||
homepage: "https://github.com/mirage/alcotest" | ||
doc: "https://mirage.github.io/alcotest" | ||
bug-reports: "https://github.com/mirage/alcotest/issues" | ||
depends: [ | ||
"dune" {>= "2.2"} | ||
"re" {with-test} | ||
"fmt" {with-test} | ||
"cmdliner" {with-test} | ||
"core" | ||
"base" | ||
"async_kernel" | ||
"ocaml" {>= "4.03.0"} | ||
"alcotest" {= version} | ||
"async_unix" {>= "v0.9.0"} | ||
"core_kernel" {>= "v0.9.0"} | ||
] | ||
build: [ | ||
["dune" "subst"] {pinned} | ||
[ | ||
"dune" | ||
"build" | ||
"-p" | ||
name | ||
"-j" | ||
jobs | ||
"@install" | ||
"@runtest" {with-test} | ||
"@doc" {with-doc} | ||
] | ||
] | ||
dev-repo: "git+https://github.com/mirage/alcotest.git" | ||
x-commit-hash: "93940ea6da1d4ce8718ddd6c528eeb6d991b29ff" | ||
url { | ||
src: | ||
"https://github.com/mirage/alcotest/releases/download/1.4.0/alcotest-mirage-1.4.0.tbz" | ||
checksum: [ | ||
"sha256=b1aaccfb2d651c902592c04953e2619169c91f797cf4f04a7dda2cab09b93ec1" | ||
"sha512=8a13d5d4c8c77f115903e6b8e58160c6e6ec27870440bd38a674e9406f57f1eff299e65f006fd77728015d1a8f0ae30a714fe47e035824950a71ebfdff2cf3c9" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
opam-version: "2.0" | ||
synopsis: "Lwt-based helpers for Alcotest" | ||
description: "Lwt-based helpers for Alcotest" | ||
maintainer: ["thomas@gazagnaire.org"] | ||
authors: ["Thomas Gazagnaire"] | ||
license: "ISC" | ||
homepage: "https://github.com/mirage/alcotest" | ||
doc: "https://mirage.github.io/alcotest" | ||
bug-reports: "https://github.com/mirage/alcotest/issues" | ||
depends: [ | ||
"dune" {>= "2.2"} | ||
"re" {with-test} | ||
"cmdliner" {with-test} | ||
"fmt" | ||
"ocaml" {>= "4.03.0"} | ||
"alcotest" {= version} | ||
"lwt" | ||
"logs" | ||
] | ||
build: [ | ||
["dune" "subst"] {pinned} | ||
[ | ||
"dune" | ||
"build" | ||
"-p" | ||
name | ||
"-j" | ||
jobs | ||
"@install" | ||
"@runtest" {with-test} | ||
"@doc" {with-doc} | ||
] | ||
] | ||
dev-repo: "git+https://github.com/mirage/alcotest.git" | ||
x-commit-hash: "93940ea6da1d4ce8718ddd6c528eeb6d991b29ff" | ||
url { | ||
src: | ||
"https://github.com/mirage/alcotest/releases/download/1.4.0/alcotest-mirage-1.4.0.tbz" | ||
checksum: [ | ||
"sha256=b1aaccfb2d651c902592c04953e2619169c91f797cf4f04a7dda2cab09b93ec1" | ||
"sha512=8a13d5d4c8c77f115903e6b8e58160c6e6ec27870440bd38a674e9406f57f1eff299e65f006fd77728015d1a8f0ae30a714fe47e035824950a71ebfdff2cf3c9" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
opam-version: "2.0" | ||
synopsis: "Mirage implementation for Alcotest" | ||
description: "Mirage implementation for Alcotest" | ||
maintainer: ["thomas@gazagnaire.org"] | ||
authors: ["Thomas Gazagnaire"] | ||
license: "ISC" | ||
homepage: "https://github.com/mirage/alcotest" | ||
doc: "https://mirage.github.io/alcotest" | ||
bug-reports: "https://github.com/mirage/alcotest/issues" | ||
depends: [ | ||
"dune" {>= "2.2"} | ||
"re" {with-test} | ||
"cmdliner" {with-test} | ||
"fmt" | ||
"ocaml" {>= "4.03.0"} | ||
"alcotest" {= version} | ||
"mirage-clock" {>= "2.0.0"} | ||
"duration" | ||
"lwt" | ||
"logs" | ||
] | ||
build: [ | ||
["dune" "subst"] {pinned} | ||
[ | ||
"dune" | ||
"build" | ||
"-p" | ||
name | ||
"-j" | ||
jobs | ||
"@install" | ||
"@runtest" {with-test} | ||
"@doc" {with-doc} | ||
] | ||
] | ||
dev-repo: "git+https://github.com/mirage/alcotest.git" | ||
x-commit-hash: "93940ea6da1d4ce8718ddd6c528eeb6d991b29ff" | ||
url { | ||
src: | ||
"https://github.com/mirage/alcotest/releases/download/1.4.0/alcotest-mirage-1.4.0.tbz" | ||
checksum: [ | ||
"sha256=b1aaccfb2d651c902592c04953e2619169c91f797cf4f04a7dda2cab09b93ec1" | ||
"sha512=8a13d5d4c8c77f115903e6b8e58160c6e6ec27870440bd38a674e9406f57f1eff299e65f006fd77728015d1a8f0ae30a714fe47e035824950a71ebfdff2cf3c9" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
opam-version: "2.0" | ||
synopsis: "Alcotest is a lightweight and colourful test framework" | ||
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. | ||
""" | ||
maintainer: ["thomas@gazagnaire.org"] | ||
authors: ["Thomas Gazagnaire"] | ||
license: "ISC" | ||
homepage: "https://github.com/mirage/alcotest" | ||
doc: "https://mirage.github.io/alcotest" | ||
bug-reports: "https://github.com/mirage/alcotest/issues" | ||
depends: [ | ||
"dune" {>= "2.2"} | ||
"ocaml" {>= "4.03.0"} | ||
"fmt" {>= "0.8.7"} | ||
"astring" | ||
"cmdliner" | ||
"uuidm" | ||
"re" | ||
"stdlib-shims" | ||
"uutf" | ||
] | ||
build: [ | ||
["dune" "subst"] {pinned} | ||
[ | ||
"dune" | ||
"build" | ||
"-p" | ||
name | ||
"-j" | ||
jobs | ||
"@install" | ||
"@runtest" {with-test} | ||
"@doc" {with-doc} | ||
] | ||
] | ||
dev-repo: "git+https://github.com/mirage/alcotest.git" | ||
x-commit-hash: "93940ea6da1d4ce8718ddd6c528eeb6d991b29ff" | ||
url { | ||
src: | ||
"https://github.com/mirage/alcotest/releases/download/1.4.0/alcotest-mirage-1.4.0.tbz" | ||
checksum: [ | ||
"sha256=b1aaccfb2d651c902592c04953e2619169c91f797cf4f04a7dda2cab09b93ec1" | ||
"sha512=8a13d5d4c8c77f115903e6b8e58160c6e6ec27870440bd38a674e9406f57f1eff299e65f006fd77728015d1a8f0ae30a714fe47e035824950a71ebfdff2cf3c9" | ||
] | ||
} |