Octez_alcotezt.AlcotestSourceWrapper 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.
Return type for tests.
Speed levels.
In Alcotest, one can ask not to run slow tests with -q from the command-line. In Tezt, the equivalent is -a quick.
Test cases.
The name of the Alcotest test case appears in Tezt's logs, but it is not used in the Tezt test title, nor as a tag.
Make a test case.
Can be raised to fail a test.
Tests.
In Tezt, the name of the test is used as the title of the test.
Run a test suite.
In Tezt, this calls Test.register but does not actually run the test suite. The name of the test suite is used as the filename for the Tezt test.
testable pp eq is a new testable with the pretty-printer pp and equality eq.
pp t is t's pretty-printer.
of_pp pp tests values which can be printed using pp and compared using Stdlib.compare
The triple testable type.
Check that two values are equal.
In Tezt, this becomes Check.(=) where ~error_msg is msg ^ ": expected %L, got %R" where msg is the string given to check.
Check that two values are equal (labeled variant of check).
Check that an exception is raised.
Fail the current test (string version).
Fail the current test (format version).