package octez-libs
A package that contains multiple base libraries used by the Octez suite
Install
Dune Dependency
Authors
Maintainers
Sources
octez-19.1.tar.gz
sha256=55ea1fb8bb3273a7fc270ca8f650d45c56449665619482aad9bc12f3ea736b7e
sha512=fec850fc2d17d7490bbabd5147d62aad13b3aaed8774270f8a38ab419670ed03e0fd30cf8642a97984eca5c2446726fe590ad99c015f7ec50919dc7652f25053
doc/octez-libs.tezt-wrapper/Tezt_wrapper/Uses/index.html
Module Tezt_wrapper.Uses
Source
Test dependencies.
Test.register
and Regression.register
take an optional argument ?uses
that allows to declare that the test uses a given file.
For instance, you can define:
let data = Uses.make ~tag:"data" ~path:"data/file.dat"
You would then:
- declare your test with
~uses:[data]
; - use
Uses.path data
to get the path to your file.
~uses:[data]
adds the tag of data
to the test tags.
Uses.path data
checks that the current test was declared with data
in its ~uses
. And when you declare a test with ~uses:[data]
, the test checks, at the end, that Uses.path data
was called. This helps to maintain the invariant that a test that uses a given file has a given tag.
Test dependencies.
Make a test dependency.
Multiple paths can be associated with the same tag, and the same paths can be associated with different tags.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>