Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase mutation score #1211

Merged
merged 1 commit into from Dec 30, 2019
Merged

Conversation

jnyrup
Copy link
Member

@jnyrup jnyrup commented Dec 30, 2019

I installed a new version of Stryker, gave it a spin and added test cases for some low-hanging fruit.

Highlights:

  • TypeSelectorAssertions.NotBeDecoratedWithOrInherit(predicate) only had a test verifying null check of the predicate, but no positive/negative test of the logic.
  • [Not]MatchRegex would include two failure messages if used inside an AssertionScope
  • No tests for NonGenericCollectionAssertions.HaveCount(predicate)
  • No tests for NotContainKeys and NotContainValues when there is a single unexpected key/value

For anyone interessted here's the mutation report

Part of #1068

Copy link
Member

@dennisdoomen dennisdoomen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be cool to have the Stryker.NET output as build output at some point in the future.

@jnyrup jnyrup merged commit 503a453 into fluentassertions:master Dec 30, 2019
@jnyrup jnyrup deleted the mutationTests branch December 30, 2019 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants