Releases: ocaml-gospel/ortac
0.5.0
0.4.0
This release brings a number of new features and improvements:
- New features:
- Improvements:
0.3.0
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
- Add support for custom ghost type as model: you are no longer limited to
- 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
tointeger
included by Gospel when
computing the expected returned value in failure message - Fix field access translation
- Add an error when none of the functions can be tested rather than
0.2.0
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 andSTM.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