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-js, alcotest-mirage …
…and alcotest-lwt (1.5.0) CHANGES: - Make Alcotest compatible with `js_of_ocaml.3.11.0`. Users can depend on the new virtual `alcotest-js` Opam library to pick up the right `js_of_ocaml` version automatically. (mirage/alcotest#326 mirage/alcotest#328, @hhugo @smorimoto) - Record exception backtraces during test suite runs by default. This behaviour can be disabled by passing `~record_backtrace:false` to `Alcotest.run`. (mirage/alcotest#317, @craigfe) - Generate shorter unique identifiers for test runs (8-character alphanumeric, rather than a full 128-bit UUID). (mirage/alcotest#304, @craigfe) - Change `Alcotest.{char,string}` pretty-printers to use OCaml syntax on assertion failures (i.e. wrap with quotes and escape control characters). (mirage/alcotest#318, @craigfe) - Fix process for getting the width of attached terminals on MacOS. Previously, a terminal width of 80 columns was assumed. (mirage/alcotest#325, @craigfe) - Fix parsing of test filter ranges to allow '-' separators (e.g. `test alpha 1-4`), as advertised in the manpage. The previously-used '..' separator is also supported. (mirage/alcotest#312, @craigfe) - Introduce an `Alcotest.V1` module that aliases the existing `Alcotest` API and provides a stability guarantee over major version changes. Similar versioned aliases also exist for the backends: `Alcotest_{async,lwt}.V1`. (mirage/alcotest#306, @craigfe) - Change the `~filter` argument to `Alcotest.run` to be a predicate over tests. (mirage/alcotest#305, @craigfe) - Renamed / removed some less frequently used modules used by the test backends: - `Alcotest.Unix` -> `Alcotest.Unix_platform` - `Alcotest_engine.{Cli,Core,Test}` -> `Alcotest_engine.V1.{Cli,Core,Test}` - `Alcotest.{Cli,Core}` are now gone. Use `Alcotest_engine.V1.{Cli,Core}.Make (Alcotest.Unix_platform)` instead. (mirage/alcotest#306 mirage/alcotest#309, @craigfe) - Avoid exporting `list_tests` in the main test APIs (`Alcotest{,_lwt,_async}`). Use `Alcotest_engine` directly if you want this function. (mirage/alcotest#310, @craigfe)
- Loading branch information
Showing
5 changed files
with
238 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,47 @@ | ||
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.8"} | ||
"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"} | ||
"odoc" {with-doc} | ||
] | ||
build: [ | ||
["dune" "subst"] {dev} | ||
[ | ||
"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: "12889aa7f993ad55434443f1c447a59f18ffc9bf" | ||
url { | ||
src: | ||
"https://github.com/mirage/alcotest/releases/download/1.5.0/alcotest-js-1.5.0.tbz" | ||
checksum: [ | ||
"sha256=54281907e02d78995df246dc2e10ed182828294ad2059347a1e3a13354848f6c" | ||
"sha512=1aea91de40795ec4f6603d510107e4b663c1a94bd223f162ad231316d8595e9e098cabbe28a46bdcb588942f3d103d8377373d533bcc7413ba3868a577469b45" | ||
] | ||
} |
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: | ||
"Virtual package containing optional JavaScript dependencies for Alcotest" | ||
description: | ||
"Virtual package containing optional JavaScript dependencies 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.8"} | ||
"alcotest" {= version} | ||
"js_of_ocaml-compiler" {>= "3.11.0"} | ||
"fmt" {with-test & >= "0.8.7"} | ||
"cmdliner" {with-test & >= "1.0.0"} | ||
"odoc" {with-doc} | ||
] | ||
build: [ | ||
["dune" "subst"] {dev} | ||
[ | ||
"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: "12889aa7f993ad55434443f1c447a59f18ffc9bf" | ||
url { | ||
src: | ||
"https://github.com/mirage/alcotest/releases/download/1.5.0/alcotest-js-1.5.0.tbz" | ||
checksum: [ | ||
"sha256=54281907e02d78995df246dc2e10ed182828294ad2059347a1e3a13354848f6c" | ||
"sha512=1aea91de40795ec4f6603d510107e4b663c1a94bd223f162ad231316d8595e9e098cabbe28a46bdcb588942f3d103d8377373d533bcc7413ba3868a577469b45" | ||
] | ||
} |
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,44 @@ | ||
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.8"} | ||
"re" {with-test} | ||
"cmdliner" {with-test} | ||
"fmt" | ||
"ocaml" {>= "4.03.0"} | ||
"alcotest" {= version} | ||
"lwt" | ||
"logs" | ||
"odoc" {with-doc} | ||
] | ||
build: [ | ||
["dune" "subst"] {dev} | ||
[ | ||
"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: "12889aa7f993ad55434443f1c447a59f18ffc9bf" | ||
url { | ||
src: | ||
"https://github.com/mirage/alcotest/releases/download/1.5.0/alcotest-js-1.5.0.tbz" | ||
checksum: [ | ||
"sha256=54281907e02d78995df246dc2e10ed182828294ad2059347a1e3a13354848f6c" | ||
"sha512=1aea91de40795ec4f6603d510107e4b663c1a94bd223f162ad231316d8595e9e098cabbe28a46bdcb588942f3d103d8377373d533bcc7413ba3868a577469b45" | ||
] | ||
} |
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: "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.8"} | ||
"re" {with-test} | ||
"cmdliner" {with-test} | ||
"fmt" | ||
"ocaml" {>= "4.03.0"} | ||
"alcotest" {= version} | ||
"mirage-clock" {>= "2.0.0"} | ||
"duration" | ||
"lwt" | ||
"logs" | ||
"odoc" {with-doc} | ||
] | ||
build: [ | ||
["dune" "subst"] {dev} | ||
[ | ||
"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: "12889aa7f993ad55434443f1c447a59f18ffc9bf" | ||
url { | ||
src: | ||
"https://github.com/mirage/alcotest/releases/download/1.5.0/alcotest-js-1.5.0.tbz" | ||
checksum: [ | ||
"sha256=54281907e02d78995df246dc2e10ed182828294ad2059347a1e3a13354848f6c" | ||
"sha512=1aea91de40795ec4f6603d510107e4b663c1a94bd223f162ad231316d8595e9e098cabbe28a46bdcb588942f3d103d8377373d533bcc7413ba3868a577469b45" | ||
] | ||
} |
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,58 @@ | ||
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.8"} | ||
"ocaml" {>= "4.03.0"} | ||
"fmt" {>= "0.8.7"} | ||
"astring" | ||
"cmdliner" {>= "1.0.0"} | ||
"re" | ||
"stdlib-shims" | ||
"uutf" | ||
"ocaml-syntax-shims" | ||
"odoc" {with-doc} | ||
] | ||
conflicts: [ | ||
"result" {< "1.5"} | ||
] | ||
build: [ | ||
["dune" "subst"] {dev} | ||
[ | ||
"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: "12889aa7f993ad55434443f1c447a59f18ffc9bf" | ||
url { | ||
src: | ||
"https://github.com/mirage/alcotest/releases/download/1.5.0/alcotest-js-1.5.0.tbz" | ||
checksum: [ | ||
"sha256=54281907e02d78995df246dc2e10ed182828294ad2059347a1e3a13354848f6c" | ||
"sha512=1aea91de40795ec4f6603d510107e4b663c1a94bd223f162ad231316d8595e9e098cabbe28a46bdcb588942f3d103d8377373d533bcc7413ba3868a577469b45" | ||
] | ||
} |