Skip to content

Add tests for gaps found by mutation testing - #295

Open
eXpl0it3r wants to merge 22 commits into
masterfrom
test/mutation-gaps
Open

eXpl0it3r wants to merge 22 commits into
masterfrom
test/mutation-gaps

Conversation

@eXpl0it3r

@eXpl0it3r eXpl0it3r commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

After #294 turned up a bug none of our tests noticed, I ran Stryker.NET over the core to see where else a changed line goes unnoticed. The mutation scores:

  • Core/Fragmentation: 87%
  • Core/Dom: 62%
  • Core/Paint: 72%
  • Core/Handlers: 44%
  • Core/Parse: 60%

This PR adds 114 tests for the surviving mutants that were worth covering, grouped by area with one commit each. Where the code doesn't do what the spec says, the test is an [Ignore("Gap, see Spec/<x>.yml")] gap test and the gap is recorded in the manifest, that's 34 of them. Production code doesn't change.

On the test support side, LayoutHarness now fails a test when layout reports an exception, since CssBox.PerformLayout catches them, and the Flatten and shape recording helpers moved to TestSupport instead of being copied around.

How to test this PR?

CI should succeed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant