Skip to content

Releases: ocaml-gospel/ortac

0.5.0

06 Jan 15:47
97e8a15
Compare
Choose a tag to compare

This new release comes with three new features:

  • #277: Add support for generating function values in Ortac/QCheck-STM
  • #280: Add module-prefix optional argument to Ortac/QCheck-STM and Ortac/Dune
  • #281: Add submodule optional argument to Ortac/QCheck-STM and Ortac/Dune

0.4.0

08 Oct 11:59
23373dc
Compare
Choose a tag to compare

This release brings a number of new features and improvements:

  • New features:
    • #247: Generated tests cover now functions with multiple SUT arguments
    • #253: Generated tests cover now functions returning SUT values
    • #259: Generated tests can be run in a separated process with a timeout
  • Improvements:
    • #245: Fix the analysis of function signature to explicitly not support SUTs inside
      another type
    • #251: Fix the display of the runnable scenario for value returned by a function
      that could have raised an exception

0.3.0

04 Jul 09:11
c8f27be
Compare
Choose a tag to compare

This release brings a number of new features and improvements:

  • Improvement of the user interface:
    • Switch to a module based configuration to simplify the command line
    • Release a dune plugin to generate Dune boilerplate
    • Overwrite the default cleanup function if there is one defined in the
      configuration module
  • Extend supported Gospel subset for models:
    • Add support for custom ghost type as model: you are no longer limited to
      the Gospel standard library to define the model of your OCaml types
    • Add support for functional type in model: you can use the arrow type as a
      model
  • Extend coverage of generated tests:
    • Add support for testing functions without a SUT argument
    • Add support for tuples, both as argument and returned value
  • Fix:
    • Add an error when none of the functions can be tested rather than
      generating illegal OCaml code
    • Handle correctly cast from int to integer included by Gospel when
      computing the expected returned value in failure message
    • Fix field access translation

0.2.0

15 Apr 09:34
a5a285d
Compare
Choose a tag to compare

This release brings of number of new features and improvements:

  • Improve test-failure message so that the user knows which part of the Gospel
    specification has been violated and get a runnable OCaml program
    demonstrating the unexpected behaviour.

  • Add support for type invariants so that they are checked at initialisation
    and after each function call.

  • Add an include option to qcheck-stm cli so that the user can add QCheck
    generator and STM.ty type extension.

  • Add a quiet flag

  • Make --help and --version work even without any plugins installed

  • Add a comment warning that the file is generated

  • Check for out of scope variables to avoid generating code that will be
    rejected by OCaml compiler.

  • Translate constant integer patterns with a guard testing for equality

0.1.0

24 Oct 13:09
Compare
Choose a tag to compare

Initial release of ortac-core, ortac-runtime and ortac-qcheck-stm