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 Stryker Mutator Tool #44

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

Added Stryker Mutator Tool #44

wants to merge 2 commits into from

Conversation

roma2023
Copy link

@roma2023 roma2023 commented Oct 24, 2024

Description:

Successfully installed the StrykerJS tool.

StrykerJS is a mutation testing framework designed for JavaScript projects. It helps ensure code quality by introducing small changes (mutants) and verifying if your tests can detect these changes. This ensures your tests are robust and that untested parts of your code are exposed. StrykerJS supports projects using TypeScript, React, Angular, VueJS, Svelte, and NodeJS.

The current version installed is 8.6.
Screenshot 2024-10-24 at 3 49 43 PM


How to use StrykerJS:
In order to run Stryker to mutation test use the following command:
npx stryker run

You can also try running with trace logging as follows:
npx stryker run --logLevel trace

Files Installed:
When installing Stryker the following 2 files were created/modified, .gitignore and stryker.config.json. Later, I copied the stryker dependency from the local package.json into install/package.json to pipeline the stryker installation into the installation of NodeBB packages.

Testing:
We used stryker to run the codebase, the results can be seen in the screenshot below. It identified that 548 of 11026 file(s) to be mutated, and highlighted some of the errors.
Screenshot 2024-10-24 at 5 19 50 PM

@roma2023 roma2023 added the Tools Installation installing tools needed to enhance development label Oct 24, 2024
@coveralls
Copy link

coveralls commented Oct 24, 2024

Pull Request Test Coverage Report for Build 11501325897

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.002%) to 82.692%

Files with Coverage Reduction New Missed Lines %
src/meta/errors.js 1 81.4%
Totals Coverage Status
Change from base Build 11482150737: -0.002%
Covered Lines: 22352
Relevant Lines: 25612

💛 - Coveralls

Copy link
Collaborator

@Abdallah-Abdaljalil Abdallah-Abdaljalil left a comment

Choose a reason for hiding this comment

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

It passes the tests, the tool looks like it works, and it looks great to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Tools Installation installing tools needed to enhance development
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants