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(ignore static): prevent leak of hybrid mutants #3443

Merged
merged 8 commits into from
Feb 22, 2022

Conversation

nicojs
Copy link
Member

@nicojs nicojs commented Feb 20, 2022

Prevent hybrid mutants to leak out to the next test run. Implement a new mutant run option called "mutantActivation". It can either be "runtime" or "static".

  • 'runtime'. The test environment should first load all tests and sut files before activating the mutant. Mutant is only active during runtime.
  • 'static'. The test enviornment should load while the mutant is active. Mutant might be active during the entire lifetime of the process.

Also, add an e2e test to verify that hybrid mutants are tested as expected.

See #3442 for more details

Fixes #3442

Prevent hybrid mutants to leak out to the next test run. Implement a new mutant run option called "mutantActivation". It can either be "runtime" or "static".

- `'runtime'`. The test environment should first load all tests and sut files before activating the mutant. Mutant is only active during runtime.
- `'static'`. The test enviornment should load _while the mutant is active_. Mutant is may be active during the entire lifetime of the process.

See #3442 for more details
@nicojs nicojs enabled auto-merge (squash) February 21, 2022 09:30
@nicojs nicojs merged commit 231049a into epic/esm Feb 22, 2022
@nicojs nicojs deleted the fix/ignore-static-hybrid branch February 22, 2022 16:11
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.

1 participant