package cascade
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=3315f94068943b3655bf530c1d82b68655524ff3601efedfbaf0a7f886fbf5a1
sha512=0f187c8e17fcbddaa0ad2760930956451062e476b678e1e60daf6ad9e7414fad99a2d70534dfdf8bca0a1092e374d009051f06b0ce9da33f2742cdde0187e75c
doc/cascade.browser/Browser/index.html
Module BrowserSource
Locating the node and the headless browser the render harnesses and the CLI's browser comparison drive, and reporting their absence the same way.
getenv name is the value of the environment variable name, and None when it is unset or empty.
executable path is true when path names a file this process may execute.
chrome_binary () is a headless-capable Chromium: CHROME when that names an executable, then PATH, then the puppeteer and playwright caches, then the macOS application bundle. Each cache keeps one directory per version, so the largest path is the newest build.
node_binary () is node: NODE when that names an executable, PATH otherwise.
chrome_version chrome is the (major, minor) the binary reports. The support dataset is keyed by version, so a harness that looks a production up has to say which build it measured rather than assume the one the default contract names.
skip harness reason prints a skip line naming harness and exits with status 0, so a machine without a browser does not fail the suite.
suppressed harness exits when CASCADE_NO_BROWSER is set: status 0 for the one value that acknowledges the run checks nothing, and status 1 for any other, so silencing harness cannot read as a pass.