使用 StrykerJS 在风险更改发货前通过突变测试对 JavaScript 和 TypeScript 测试套件进行压力测试
Run mutation testing against JS or TS projects to find tests that still pass when real defects are introduced.
Prerequisites
Node.js, npm, a supported JavaScript or TypeScript test runner
Installation
Use the upstream install or setup path that matches your environment:
- pnpm add --save-dev @stryker-mutator/core
- npx stryker run
- $ npx stryker <command> [options] [configFile]
Requirements and caveats from upstream:
-
Basic usage or getting-started notes:
- Please follow the quickstart on the website.
- For small js projects, you can try the following command:
- # Only for small projects:
- Source: https://github.com/1991513ccie-png/skills
- Extracted from upstream docs: https://raw.githubusercontent.com/stryker-mutator/stryker-js/HEAD/README.md
Documentation
- https://stryker-mutator.io/