Legend:
Library
Module
Module type
Parameter
Class
Class type
Wrapper to run Alcotest tests with Tezt as a backend.
This module provides a subset of the interface of the Alcotest module of the real Alcotest library. But instead of using Alcotest to run the tests, it uses Tezt. This allows to transition from Alcotest to Tezt without having to actually change the code. In turn, this allows to benefit from Tezt features such as auto-balancing in the CI. One can then use Tezt's modules in the test, to gradually migrate the test to Tezt and stop using this wrapper.
This module is intended as a way to help transition from Alcotest to Tezt, not to use both at the same time forever. First use Alcotezt to have the test runnable using Tezt, as a quick win to get auto-balancing etc. Then stop using Alcotest functions and migrate existing calls at the pace that is convenient for you.
type return = unit
Return type for tests.
type speed_level = [
| `Quick
| `Slow
]
Speed levels.
In Alcotest, one can ask not to run slow tests with -q from the command-line. In Tezt, the equivalent is quick.
Tests registered with `Slow or `Quick will have respectively the tag "slow" or "quick". "slow" tag may have consequences on how the test will be handled by the CI. More information is given in src/lib_test/tag.mli.