test: cover the mise en place end to end (audit B11) #66
No reviewers
Labels
No labels
bug
discussion
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gram-lang/gram!66
Loading…
Reference in a new issue
No description provided.
Delete branch "test/audit-b11"
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?
Audit B11, the four missing tests in one PR (one commit each):
compileDirswallowed any exception; it now only skips a case whose golden is anerror.json(today: err-011) and rethrows anything else. Checked: a case that throws withouterror.jsonnow fails the suite.metrics.tsit fails with exactly the audit's symptoms (idleTime -1, cost on a section with no step). Applying-scale parity (audit C1, a known pre-existing bug) is left as anit.todo.view,exportandprintwith--mise-en-place(space and=forms, bad value -> exit 1).printis only run on a bad value since it opens a browser on success. Checked: breaking the flag mapping makes 2 tests fail.Writing 4 found a real bug, fixed in its own commit:
connection.onDidChangeConfigurationwas registered at the end ofonInitialized, after several awaits, so a settings change sent right after startup hit a connection with no handler and was dropped (open recipes kept the old schedule, and the database path was not reloaded, until the next change). The handler is now registered before the first await. The test failed before the fix and passes 3 runs in a row after it.ci (1324 tests) and conformance 98/98 pass. The Forgejo workflow already has Node and a build before the tests, which the LSP test needs. No changeset: the affected setting is new in 1.4.0.