skills: a survivor names a blind test, one cap over two resolvers, and a runner timer a microtask loop starves #4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "vesta/ci-lessons"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Three mutation-testing lessons from a day of mutant rounds.
A surviving mutant names a blind test before it names a missing guard. Three shapes: an assertion on an index the line does not have; a path the test never reaches; and a second mechanism answering the same fact, so removing one source changes nothing. Ask first whether the assertion's subject exists and whether something else already supplies what the mutant removes, then strengthen the test.
Where one boundary bounds two resolvers in sequence, a case shorter than the sum of the two caps is resolved even when the cap is cut to a fraction. Two caps of two need a five-hop chain.
A bounded loop that awaits a promise with a synchronous body yields microtasks only, so a test runner's timers never fire and the run can wedge for hours with a timeout set. Give the mutation runner a wall-clock kill per case; a case killed that way is not a kill, because the test never spoke.
No member names, hosts, paths or tokens: generalized and leak-scanned (0 hits over 20 added lines).
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.