Skip to content

Releases: mirage/alcotest

1.1.0

03 Apr 11:48
Compare
Choose a tag to compare

CHANGES:

  • Fix handling of CLI options for Alcotest_{async,lwt}.run. (#222, @craigfe)
  • Fix interleaving of ASSERT outputs with the other test code, and ensure that
    it is correctly captured in log files. (#215 #228, @icristescu @craigfe)
  • Don't raise Test_exception on Cmdliner parse failure (#234, @craigfe)

1.0.1

12 Feb 14:19
Compare
Choose a tag to compare

CHANGES:

  • Add support for an ALCOTEST_COLOR={auto,always,never} environment variable
    to control the colorization of terminal output. (#209, @mjambon)
  • Fix handling of asynchronous exceptions in Alcotest_{async,lwt}. (#212,
    @craigfe @talex5)

1.0.0

14 Jan 16:35
Compare
Choose a tag to compare

CHANGES:

  • Require OCaml 4.03. (#159, @hannesm)
  • Change Alcotest_{async,lwt}.test_case to return monadic values. These must
    be run with the new Alcotest_{async,lwt}.run functions. See
    examples/lwt/test.ml
    for an example of the new API. (#167, @craigfe)
  • Add generation of latest symlinks in the _test directory which point to
    the most recent test output directory. (#155, @cfcs)
  • Allow all CLI options to be passed directly to Alcotest.{run,run_with_args}
    without use of the argv parameter. (#182, @craigfe)
  • Add --compact option for more concise result reporting. (#149,
    @andersfugmann)
  • Add --tail-errors option for limiting the size of error logs printed to
    standard output. (#200, @mjambon)
  • Add support for executing subsets of tests via the test subcommand. (#158,
    @craigfe)
  • Change the float check to include equality of isNaN and infinities. See
    examples/floats.ml
    for demonstrations of the new semantics. (#152, @psafont)
  • Reject test suites with colliding output directories. (#176, @craigfe)
  • Restrict the set of characters allowed in test names to alphanumerics,
    hyphens, underscores and spaces. (#161, @craigfe)
  • Fix a race condition on creating output directories. (#150, @edwintorok)
  • Report test suite durations in real time rather than system time. (#162,
    @craigfe)
  • Improve documentation of the ?argv parameter. (#164, @ian-barnes)
  • Remove version number from test binary help pages. (#186, @craigfe)
  • Remove dependency on tput. (#189, @samoht)
  • Remove result dependency. (#159, @hannesm)
  • Remove uses of deprecated Pervasives.compare. (#173, @craigfe)

0.8.5

17 Jan 18:06
3fae1a0
Compare
Choose a tag to compare

CHANGES:

0.8.4

17 Oct 08:06
f332a86
Compare
Choose a tag to compare

CHANGES:

0.8.3

25 Mar 11:36
1f2d18c
Compare
Choose a tag to compare

0.8.3 (2018-03-25)

  • Show one failure when multiple tests fail (#117, @aantron)

0.8.2

25 Aug 11:16
Compare
Choose a tag to compare

0.8.2 (2017-08-21)

  • add Async support: there is a new alcotest-async package containing
    an Alcotest_async module (#104, @rgrinberg)

0.8.1

03 Aug 11:35
Compare
Choose a tag to compare

0.8.1 (2017-08-03)

  • Add failf (#105, @hcarty)
  • Relax the float combinator to compare its epsilon using <= instead
    of <. This allows to use float 0. for "exact" float comparison
    (#107, @samoht, @talex5)
  • Fix outdated displayed information when using --verbose.
    Be clearer that no new output logs are actually created and
    do not try to display outdated information (#108, @samoht)

0.8.0

23 Jun 12:21
Compare
Choose a tag to compare

0.8.0 (2016-06-22)

  • Format "got" and "expected" values in the same way (#86, @talex5)
  • Change the float combinator to take a mandatory 'epsilon' parameter
    (#89, @superbobry)
  • Switch to jbuilder (#92, @rgrinberg)
  • Add a test_case function (#94, @samoht)
  • Add an alcotest-lwt package, containing an Alcotet_lwt module with
    an Alcotest_lwt.test_case function to better deal with lwt tests
    (#94, @talex5, @samoht)
  • Add Alcotest.neg to negate test results (#95, @samoht)
  • Change the test_case type from unit -> unit to 'a -> unit. The 'a
    parameter can be built using as a Cmdliner term using the new
    run_with_args function. This is useful to configure the tests using the CLI
    (#96, @samoht)

0.7.2

10 Nov 11:30
Compare
Choose a tag to compare

0.7.2 (2016-11-10)

  • Clean up handling of env variables (#83, @samoht)