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

Install stryker mutation tool for dynamic analysis #53

Open
wants to merge 1 commit into
base: f24
Choose a base branch
from

Conversation

lhitmi
Copy link

@lhitmi lhitmi commented Oct 24, 2024

Stryker Mutator, a mutation testing tool, is integrated into the NodeBB codebase through installation using the command npm init stryker. This initializes the tool's configuration by creating a stryker.config.mjs file. During setup, key parameters were selected, including Mocha as the test runner, tsc -b as the build command, and html, clear-text, progress as reporters. The package manager was set to npm, and the configuration file was written in JavaScript. Once configured, Stryker was executed using npx stryker run, and mutation tests were successfully conducted to assess the robustness of the test suite.

Screenshot 2024-10-24 at 3 14 00 PM

Image 24-10-2024 at 3 13 PM

Image 24-10-2024 at 3 33 PM

@coveralls
Copy link

Pull Request Test Coverage Report for Build 11499438837

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.02%) to 82.675%

Files with Coverage Reduction New Missed Lines %
src/meta/errors.js 1 76.74%
Totals Coverage Status
Change from base Build 11475022613: -0.02%
Covered Lines: 22362
Relevant Lines: 25627

💛 - Coveralls

@lhitmi lhitmi self-assigned this Oct 24, 2024
@lhitmi lhitmi added the backend main code is written in backend label Oct 24, 2024
Copy link
Member

@mohamed-elzeni mohamed-elzeni left a comment

Choose a reason for hiding this comment

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

I was also able to install and run the tool using the configuration file added. LGTM!

@mohamed-elzeni mohamed-elzeni added this to the P3A milestone Oct 25, 2024
Copy link

@tatougueye tatougueye left a comment

Choose a reason for hiding this comment

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

LGTM, the tool integrates well with our repo and instructions on how to use it are clear!

@akobaidan akobaidan changed the title installed stryker mutation Installed stryker mutation Oct 27, 2024
@akobaidan akobaidan changed the title Installed stryker mutation Installed stryker mutation dynamic analysis tool Oct 27, 2024
@akobaidan akobaidan changed the title Installed stryker mutation dynamic analysis tool Installed stryker mutation tool for dynamic analysis Oct 27, 2024
@akobaidan akobaidan added enhancement New feature or request and removed backend main code is written in backend labels Oct 27, 2024
@mohamed-elzeni mohamed-elzeni changed the title Installed stryker mutation tool for dynamic analysis Install stryker mutation tool for dynamic analysis Oct 27, 2024
@mohamed-elzeni mohamed-elzeni linked an issue Oct 27, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Install a dynamic analysis tool
5 participants