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

fix(MutantRunResultMatcher): False positive fix #155

Merged
merged 12 commits into from
Oct 4, 2016

Conversation

nicojs
Copy link
Member

@nicojs nicojs commented Oct 1, 2016

When a mutant alters something smaller than an exact statement, it was reported as untested, well in fact it was covered.

  • Fixed the algorithm
  • Add a test to prevent regression

Fix for #151

nicojs and others added 9 commits September 10, 2016 21:04
* Using @types dev dependencies
* Update estree node structure in mutator module
* Remove dependency on typings
* Make use of ts2 type narrowing
* Rename module 'stryker-api/estree' back to 'estree'
* Update mutators by injecting the new signature of the copy function. This allows us to remove most of the type castings.
Mostely:
* Semicolon
* Whitespaces
* double quotes <> single quotes
* Removed unused other stryker dependencies
When a mutant alters something smaller than an exact statement, it was reported as `untested`, well in fact it was covered.
* Fixed the algoritm
* Add a test to prevent regression
@nicojs
Copy link
Member Author

nicojs commented Oct 3, 2016

I just did the test on @bkimminich's juice-shop and with test selector gives the same result as without. Also, the original reported false positive now also gets killed. A thing of absolute beauty 👍

nicojs added 2 commits October 4, 2016 06:44
# Conflicts:
#	package.json
#	src/MutatorOrchestrator.ts
#	src/mutators/RemoveConditionalsMutator.ts
#	test/unit/mutators/RemoveConditionalsMutatorSpec.ts
#	testResources/module/package.json
@nicojs nicojs changed the title WIP: fix(MutantRunResultMatcher): False positive fix fix(MutantRunResultMatcher): False positive fix Oct 4, 2016
@nicojs nicojs merged commit 255f84b into master Oct 4, 2016
@nicojs nicojs deleted the fix-false-positive-mutant branch October 4, 2016 04:54
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.

2 participants