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

Added Dynamic Tool Stryker Mutator #56

Open
wants to merge 3 commits into
base: f24
Choose a base branch
from
Open

Conversation

ilong4rennes
Copy link

@ilong4rennes ilong4rennes commented Oct 22, 2024

What

Added Dynamic Tool - Stryker Mutator

Why

To enhance the quality and stability of the software by catching bugs that occur during program execution.

How

  1. Install Stryker npm install --save-dev @stryker-mutator/core @stryker-mutator/mocha-runner @stryker-mutator/javascript-mutator, and package.json file has been updated with Stryker
  2. Create a Stryker configuration file: npx stryker init
  3. Execute Stryker to run mutation testing: npx stryker run

Testing

Artifact: a text file containing the terminal output from the tool
https://github.com/CMU-313/nodebb-f24-the-turtles/blob/dynamic-tool-1/stryker-output.txt

Stryker successfully runs because it can execute the initial setup and testing in a controlled, sandbox environment. It uses this environment to safely perform code mutation and run tests without affecting the actual codebase.

However, the error indicates that when trying to modify or set properties on require in this sandbox, the require object is not available or behaves differently than in a standard Node.js environment.

@ilong4rennes ilong4rennes self-assigned this Oct 22, 2024
@ilong4rennes ilong4rennes added the testing improving code coverage label Oct 22, 2024
@ilong4rennes ilong4rennes reopened this Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing improving code coverage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant