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

installed a dynamic tool stryker #62

Merged

Conversation

jdufitum
Copy link

Summary

This pull request adds the Stryker Mutator configuration file (stryker.config.mjs) to the project, enabling mutation testing to improve code quality and test coverage.

Changes

  • Added stryker.config.mjs with the following configuration:
    • Package Manager: npm
    • Reporters: html, clear-text, progress
    • Test Runner: mocha
    • Coverage Analysis: perTest

Configuration Details

The Stryker configuration includes:

  • html: Generates an HTML report for easy visualization of mutation testing results.
  • clear-text: Outputs the results in a clear text format in the console.
  • progress: Shows the progress of the mutation testing in the console.
  • mocha: Uses Mocha as the test runner.
  • perTest: Performs coverage analysis on a per-test basis.

Motivation

Adding Stryker Mutator helps in identifying weaknesses in the test suite by introducing mutations and checking if the tests catch them. This ensures that the tests are robust and the code is well-tested.

How to Test

  1. Ensure all dependencies are installed:
    npm install

Screenshot 2024-10-27 170419
Screenshot 2024-10-27 170419

@jdufitum jdufitum self-assigned this Oct 27, 2024
@jdufitum jdufitum merged commit 8405c46 into CMU-17313Q:f24 Oct 27, 2024
1 check failed
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