Skip to main content

Module test

Module test 

Source
Expand description

bynk test — discover and run a project’s test declarations.

Delegates to the bynkc the driver resolves (BYNK_BYNKC → PATH → sibling-of-bynk) and shells bynkc test, forwarding every flag verbatim (v0.138, #487). Unlike check/fmt, test delegates always, not only under an override: it orchestrates external tsc/node, so it is a subprocess regardless, and routing it through the driver’s resolution is the whole point — an editor or developer inherits that resolution instead of locating bynkc themselves (the fix direction for #486). The trade-off (a bynkc binary must be present, and the driver↔compiler skew surface stays) is accepted; the driver at least resolves it more richly than any editor. #1675: and it acts on that skew before delegating — see crate::compiler::skew_gate.

Functions§

run
Run bynk test by shelling the resolved bynkc. When no bynkc could be located, point the developer at bynk doctor rather than emitting a raw spawn error.