Repository navigation
Release 4.30.3
Changed
- A job past its time limit no longer waits for the machine to empty before it
runs again. It now reruns alongside a control run of its tests without the
mutant, under the same load, and takes its limit from that control. Where
some jobs take minutes, waiting kept the machine half idle: 89 mutants of one
such project took 916 s instead of 1182 s, with the same verdicts.
Fixed
mergeof a split strong pass: a mutant that survived one job's tests, where another job's tests passed without running the mutated code, came outno-coverage, as if no test ran it. It is nowsurvived, since every test that could kill it ran with it. Where a test no such job ran could kill it, the mutant is left for a later pass, not calledno-coverage.- node:test records how long each test took, as Jest and Mocha already did.
Without this, a strong pass counted every node:test test as 1 s when choosing
which of a mutant's test files to run first and when setting a job's time
limit. - A test file that reads a measured file as text sees it as written. Tests of
a browser script that check what the file says, or run it in avm
sandbox of their own, failed on the instrumented copy: its first line was
Supercov's, and a fresh sandbox had no runtime ("Cannot read properties of
undefined (reading 'mcdcBegin')"). A test file (*.test.*,*.spec.*, or
one undertest/,tests/,__tests__/,spec/ore2e/) now reads the
file as its author wrote it; a server, a helper or a bundler still reads
the copy, so a browser is served what is measured. A measured file run in
avmcontext, as written or as the copy, runs as the copy with the run's
runtime, so it is still measured. node --checkon a measured file no longer fails with "WeakRef: invalid
target": Node fails a syntax check of any file with an inline source map
while source maps are on, and Supercov now turns them off for a check.- JavaScript strong pass (node:test, Jest, Mocha, AVA, tap, bun:test): a test
file that can't run beside a copy of itself, such as one that starts a server
on a fixed port, could have its tests reach another job's server, which was
running a different mutant or none. That gave false kills and survivors. Each
file's first baseline now runs as two copies at once. Where they end
differently, that file's jobs run one at a time, and the pass names it. - A Rust Worker under
wrangler devno longer loses a decision now and then.
A decision's record can cross a page of the coverage region, and the poller
reads only the pages marked as written; the record marked only its first
page, so a take read it as empty unless another probe had written the next
page. A branch body was then covered while its condition's outcome showed
as never observed, and the 100% gate could fail on unchanged code. A
record now marks every page it is on.