Repository navigation
1.10.0
CHANGES:
- Experimental: with
--junitorALCOTEST_JUNIT=1, write a JUnit XML report
of each run tojunit/<name>-<time>-<id>.xmlof the log directory, with the
fileandlineof each test, or of its failure (#449, #476, fixes #130,
@samoht, report by @pbiggar) - Record the source file that calls
run, and write it as thefileof the
<testsuite>of the JUnit report (#449, @samoht) Platform.Snow requirestimestampandwrite_file(#449, @samoht)- Under dune, keep the output of tests in
_build/_testsof the workspace,
where dune does not delete it, rather than in_build/default. With #472, each
dune testadds its runs to_build/_tests/run/<name>/<time>-<id>, which gives
a local history of test results (#471, @samoht) - Fix
alcotest-mirage, which failed withAssertion failedin every run
without--verbosesince 1.5.0 (#473, @samoht) - Keep the logs of each run in
run/<name>/<time>-<id>, where<name>is the
name given torun, so that the runs of each test executable are listed in
order.lateststill points to the last run (#472, @samoht) - Fix the link named after each test executable, which did not always point to
its last run. It is replaced by therun/<name>folder (#472, @samoht) - Fix a crash when the name of a
suiteorgroupis longer than a file name
can be (#472, @samoht) - Fix log files hidden when the name of a
suiteorgroupstarts with a dot
(#472, @samoht) - Custom platforms:
prepare_log_traptakes the name given torunand returns
the folder of the run (#472, @samoht) - Fix creating a log directory written with
/on Windows, as in-o a/b, which
failed withENOENT(#470, @samoht) - Add
test ?tags name fandsuite name cases, to writesuite "a" [ test "b" f ]
instead of("a", [ test_case "b"Quick f ]).tagsdefaults to ``Always ``
(#468, @samoht, combinators suggested by @yawaramin in #393) - Add
?tagstogroup: its cases only run when these tags hold as well as
their own (#468, @samoht, API from #294 by @craigfe) - Add
group name cases, atest_casethat nestscasesto any depth. They
run in place, are reported asparent.nameand are selected with
test '^parent\.name'(#453, fixes #275, @samoht, API from #294 by @craigfe,
dotted names suggested by @mjambon) - Show the file and line of every failing test, not only of a failing
check.
A failure in a helper points to the line of the test that calls it.
ALCOTEST_SOURCE_CODE_POSITIONstill turns this off (#451, @samoht, based on
B0_testingby @dbuenzli and the b0 programmers) - Print the message of a failing check once:
ASSERTnow only shows the checks
that passed (#465, @samoht) - Add wasm_of_ocaml support (#461, #436, #437, @hhugo, @samoht and @mefyl)
- Remove code made redundant by OCaml 4.14 (#460, @samoht)
- Close a failed test's log file when printing it raises, instead of leaking the
file descriptor (#460, @samoht) - Remove the
alcotest-jspackage, which had no code and only added dependencies.
To test with js_of_ocaml, depend onjs_of_ocaml-compilerdirectly (#463, @samoht) - Require OCaml 4.14 and replace
uutfwith the stdlib UTF-8 decoder. Test names
with invalid UTF-8 can get a different log file name (#456, @samoht) - Print valid UTF-8 as is in
stringfailures, when the output supports it
(#456, fixes #408, @samoht, report by @feverdreme, suggestion by @lindig) - Add
iarray, a testable forIarray.t, available from OCaml 5.4
(#455, fixes #434, @samoht, report by @JanBeh) - Fix UTF-8 locale detection, which never matched since 1.8.0, so
Fmt.if_utf_8
printers always took the non-UTF-8 branch.LC_ALLnow overridesLC_CTYPEand
LANG, as in POSIX, andUTF8also counts (#457, @samoht) - Recognise
Alcotest.skipand failed checks inalcotest-asynctests: Async
wrapped the exceptions, so a skip counted as a failure (#278, @vbmithr) - Make
alcotest-asyncunavailable on Windows, so that ocaml-ci tests the other
packages there (#454, @samoht, suggested by @mtelvers) - Remove stdlib-shims and ocaml-syntax-shims (#452, @copy)
- Update ocamlformat to 0.29.0 (#450, @samoht)
- Fix and modernise CI (#445, #446, #436, #407, @samoht, @hhugo and @MisterDA,
report by @edwintorok and @ngorogiannis) - Add
uchar, a testable forUchar.t(#435, @emengd, review by @dinosaure) - Fix the
successcount in--jsonoutput, which included failures
(#432, fixes #431, @1zumiSagiri, review by @MisterDA) - Add conditions on tests:
test_caseand test tuples accept`Tag,
`And,`Or,`Notand`Always, also asTagcombinators, which
hold in a context set by a new--tagsoption orALCOTEST_TAGS, as with Go
build tags. A newtagssubcommand lists them.speed_levelis now an alias
of the newtagtype, which breaks code matching on it exhaustively or
restating it as[ `Quick | `Slow ]
(#448, fixes #124, #151 and #316, @samoht, report by @hannesm and @arvidj) - Preserve absolute log directories:
mkdir_pturned/foointo//foo, which
fails withEROFSon Cygwin (#405, fixes #404, @bbonf, review by @MisterDA
and @samoht) - Allow callers to override
and_exitandrecord_backtracein thetest
subcommand (#439, fixes #438, @edwintorok) - Keep
Unix.stdoutandUnix.stderrvalid during tests on Windows
(#444, fixes #443, @ngorogiannis) - Test
alcotest-asyncexception handling (#279, @craigfe) - Add an
alcotest-asyncexample (#458, #421, @dannywillems)