this repo has no description

[new release] Four Ortac packages 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 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

Changed files
+223
packages
ortac-core
ortac-core.0.2.0
ortac-qcheck-stm
ortac-qcheck-stm.0.2.0
ortac-runtime
ortac-runtime.0.2.0
ortac-runtime-qcheck-stm
ortac-runtime-qcheck-stm.0.2.0
+63
packages/ortac-core/ortac-core.0.2.0/opam
···
+
opam-version: "2.0"
+
synopsis:
+
"Ortac (OCaml Runtime Assertion Checking) core tool and library based on Gospel"
+
description: """
+
Ortac (OCaml Runtime Assertion Checking) is a tool to turn
+
executable Gospel specifications into code to test they hold.
+
Ortac Core provides:
+
- a library to turn Gospel terms and types into OCaml expressions
+
and types,
+
- and a command-line tool.
+
You will need at least one of the Ortac plugins to actually
+
generate test code.
+
"""
+
maintainer: ["Clément Pascutto <clement@pascutto.fr>"]
+
authors: [
+
"Clément Pascutto <clement@pascutto.fr>"
+
"Nicolas Osborne <nicolas.osborne@tarides.com>"
+
"Samuel Hym <samuel.hym@rustyne.lautre.net>"
+
]
+
license: "MIT"
+
homepage: "https://github.com/ocaml-gospel/ortac"
+
doc: "https://ocaml-gospel.github.io/ortac/ortac-core/"
+
bug-reports: "https://github.com/ocaml-gospel/ortac/issues"
+
depends: [
+
"dune" {>= "3.8"}
+
"ocaml" {>= "4.12.0"}
+
"dune-build-info"
+
"dune-site"
+
"cmdliner" {>= "1.1.0"}
+
"fmt"
+
"ppxlib" {>= "0.26.0"}
+
"gospel" {>= "0.3.0"}
+
"alcotest" {with-test & >= "0.8.1"}
+
"ortac-runtime" {with-test}
+
"odoc" {with-doc}
+
]
+
conflicts: [
+
"result" {< "1.5"}
+
]
+
build: [
+
["dune" "subst"] {dev}
+
[
+
"dune"
+
"build"
+
"-p"
+
name
+
"-j"
+
jobs
+
"--promote-install-files=false"
+
"@install"
+
"@runtest" {with-test}
+
"@doc" {with-doc}
+
]
+
["dune" "install" "-p" name "--create-install-files" name]
+
]
+
dev-repo: "git+https://github.com/ocaml-gospel/ortac.git"
+
url {
+
src: "https://github.com/ocaml-gospel/ortac/archive/refs/tags/0.2.0.tar.gz"
+
checksum: [
+
"md5=15d9aa0fb63a79a5444b35970910c5c4"
+
"sha512=3a9162a91c4556553d3105de446e59247360ca2f0bd984124fac330854410d336aed7af252ae73ab7148f8b8f389601cc46e5b783e3bba9a7390df9009e5e10a"
+
]
+
}
+64
packages/ortac-qcheck-stm/ortac-qcheck-stm.0.2.0/opam
···
+
opam-version: "2.0"
+
synopsis: "QCheck-STM plugin for Ortac"
+
description: """
+
The QCheck-STM plugin for the Ortac command-line tool (provided by
+
the ortac-core package) can generate model-based tests for a module
+
with Gospel specifications. The generated code will test that the
+
function specifications hold by using the QCheck-STM library to
+
create random test cases.
+
+
Ortac (OCaml Runtime Assertion Checking) is a tool to turn
+
executable Gospel specifications into code to test they hold.
+
"""
+
maintainer: ["Nicolas Osborne <nicolas.osborne@tarides.com>"]
+
authors: [
+
"Nicolas Osborne <nicolas.osborne@tarides.com>"
+
"Samuel Hym <samuel.hym@rustyne.lautre.net>"
+
]
+
license: "MIT"
+
homepage: "https://github.com/ocaml-gospel/ortac"
+
doc: "https://ocaml-gospel.github.io/ortac/ortac-qcheck-stm/"
+
bug-reports: "https://github.com/ocaml-gospel/ortac/issues"
+
depends: [
+
"dune" {>= "3.8"}
+
"ocaml" {>= "4.12.0"}
+
"cmdliner" {>= "1.1.0"}
+
"fmt"
+
"ppxlib" {>= "0.26.0"}
+
"mdx" {with-test & >= "2.3.0"}
+
"gospel" {>= "0.3.0"}
+
"qcheck-core" {with-test}
+
"qcheck-stm" {with-test}
+
"qcheck-multicoretests-util" {with-test}
+
"ortac-core" {>= "0.2.0"}
+
"ortac-runtime" {with-test}
+
"ortac-runtime-qcheck-stm" {with-test}
+
"odoc" {with-doc}
+
]
+
conflicts: [
+
"result" {< "1.5"}
+
]
+
build: [
+
["dune" "subst"] {dev}
+
[
+
"dune"
+
"build"
+
"-p"
+
name
+
"-j"
+
jobs
+
"--promote-install-files=false"
+
"@install"
+
"@runtest" {with-test}
+
"@doc" {with-doc}
+
]
+
["dune" "install" "-p" name "--create-install-files" name]
+
]
+
dev-repo: "git+https://github.com/ocaml-gospel/ortac.git"
+
url {
+
src: "https://github.com/ocaml-gospel/ortac/archive/refs/tags/0.2.0.tar.gz"
+
checksum: [
+
"md5=15d9aa0fb63a79a5444b35970910c5c4"
+
"sha512=3a9162a91c4556553d3105de446e59247360ca2f0bd984124fac330854410d336aed7af252ae73ab7148f8b8f389601cc46e5b783e3bba9a7390df9009e5e10a"
+
]
+
}
+46
packages/ortac-runtime-qcheck-stm/ortac-runtime-qcheck-stm.0.2.0/opam
···
+
opam-version: "2.0"
+
synopsis: "Runtime support library for Ortac/QCheck-STM-generated code"
+
description: """
+
The ortac-runtime-qcheck-stm library provides support for the code
+
generated by the Ortac/QCheck-STM plugin (provided by the
+
ortac-qcheck-stm package).
+
+
Ortac (OCaml Runtime Assertion Checking) is a tool to turn
+
executable Gospel specifications into code to test they hold.
+
"""
+
maintainer: ["Nicolas Osborne <nicolas.osborne@tarides.com>"]
+
authors: ["Nicolas Osborne <nicolas.osborne@tarides.com>"]
+
license: "MIT"
+
homepage: "https://github.com/ocaml-gospel/ortac"
+
bug-reports: "https://github.com/ocaml-gospel/ortac/issues"
+
depends: [
+
"dune" {>= "3.8"}
+
"ocaml" {>= "4.12.0"}
+
"qcheck-stm"
+
"ortac-runtime" {>= "0.2.0"}
+
"odoc" {with-doc}
+
]
+
build: [
+
["dune" "subst"] {dev}
+
[
+
"dune"
+
"build"
+
"-p"
+
name
+
"-j"
+
jobs
+
"--promote-install-files=false"
+
"@install"
+
"@runtest" {with-test}
+
"@doc" {with-doc}
+
]
+
["dune" "install" "-p" name "--create-install-files" name]
+
]
+
dev-repo: "git+https://github.com/ocaml-gospel/ortac.git"
+
url {
+
src: "https://github.com/ocaml-gospel/ortac/archive/refs/tags/0.2.0.tar.gz"
+
checksum: [
+
"md5=15d9aa0fb63a79a5444b35970910c5c4"
+
"sha512=3a9162a91c4556553d3105de446e59247360ca2f0bd984124fac330854410d336aed7af252ae73ab7148f8b8f389601cc46e5b783e3bba9a7390df9009e5e10a"
+
]
+
}
+50
packages/ortac-runtime/ortac-runtime.0.2.0/opam
···
+
opam-version: "2.0"
+
synopsis: "Runtime support library for Ortac-generated code"
+
description: """
+
The ortac-runtime library provides support for the code generated
+
by the various Ortac plugins.
+
Ortac (OCaml Runtime Assertion Checking) is a tool to turn
+
executable Gospel specifications into code to test they hold.
+
"""
+
maintainer: ["Clément Pascutto <clement@pascutto.fr>"]
+
authors: [
+
"Clément Pascutto <clement@pascutto.fr>"
+
"Nicolas Osborne <nicolas.osborne@tarides.com>"
+
"Samuel Hym <samuel.hym@rustyne.lautre.net>"
+
]
+
license: "MIT"
+
homepage: "https://github.com/ocaml-gospel/ortac"
+
doc: "https://ocaml-gospel.github.io/ortac/ortac-runtime/"
+
bug-reports: "https://github.com/ocaml-gospel/ortac/issues"
+
depends: [
+
"dune" {>= "3.8"}
+
"ocaml" {>= "4.12.0"}
+
"fmt" {>= "0.8.7"}
+
"zarith"
+
"monolith" {with-test}
+
"odoc" {with-doc}
+
]
+
build: [
+
["dune" "subst"] {dev}
+
[
+
"dune"
+
"build"
+
"-p"
+
name
+
"-j"
+
jobs
+
"--promote-install-files=false"
+
"@install"
+
"@runtest" {with-test}
+
"@doc" {with-doc}
+
]
+
["dune" "install" "-p" name "--create-install-files" name]
+
]
+
dev-repo: "git+https://github.com/ocaml-gospel/ortac.git"
+
url {
+
src: "https://github.com/ocaml-gospel/ortac/archive/refs/tags/0.2.0.tar.gz"
+
checksum: [
+
"md5=15d9aa0fb63a79a5444b35970910c5c4"
+
"sha512=3a9162a91c4556553d3105de446e59247360ca2f0bd984124fac330854410d336aed7af252ae73ab7148f8b8f389601cc46e5b783e3bba9a7390df9009e5e10a"
+
]
+
}