🗃 A schema for mutation testing results with the web components to visualise it 📊
Welcome to the mutation testing elements mono repo.
It is a lernajs mono repository. Please see the packages directory to navigate to a sub package.
The mutation-testing-report-schema and mutation-testing-elements versions will be kept in sync.
The schema can have major and minor releases, as well as patch releases. A bug or documentation update will mean a patch release. Backward compatible changes mean a minor release, breaking changes will mean a major release.
The mutation-testing-elements major and minor version will be in sync with the schema, however it can have patch releases for changes of the elements without a schema update.
Note that this is not strict semver 2.0.0. See https://github.com/stryker-mutator/mutation-testing-elements/issues/5 for the reasoning behind it.
An example (just for clarification, versions are not based on reality):
| Schema version | Supported mutation-testing-elements implementations |
|---|---|
1.0.0 | 1.0.0, 1.0.1 |
1.1.0 | 1.0.0, 1.0.1, 1.1.0, 1.1.1 |
2.0.0 | 2.0.0, 2.0.1 |
2.0.1 | 2.0.0, 2.0.1 |
Releasing is done with from the travis build server. Perform the following steps:
npm install.npm run lerna:version:patch, npm run lerna:version:minor or npm run lerna:version:major (based on the release you want). Lerna will figure out which packages need to be released and prompt to ask if it is OK.Introduce an ability to add new kolumns
https://github.com/stryker-mutator/mutation-testing-elements/issues/3835
Labels: None
a way to merge reports from multiple node versions?
https://github.com/stryker-mutator/mutation-testing-elements/issues/3680
Labels: enhancement
Functionality to compare reports in a diff view
https://github.com/stryker-mutator/mutation-testing-elements/issues/3542
Labels: None
Add keyboard shortcuts
https://github.com/stryker-mutator/mutation-testing-elements/issues/3370
Labels: enhancement, good first issue, hacktoberfest
Update screenshots in README.md
https://github.com/stryker-mutator/mutation-testing-elements/issues/3351
Labels: None
Error when displaying multi-line replacements
https://github.com/stryker-mutator/mutation-testing-elements/issues/3163
Labels: hacktoberfest, 🐛 Bug
This is the contribution guide for mutation-testing-elements. Great to have you here! Here are a few ways you can help make this project better.
Get in touch with us through twitter or via the Stryker Slack.
Please adhere to our editorconfig, eslint rules and prettier rules.
If you're using vscode, please open the workspace.code-workspace file (note: not the directory) and install the recommended extensions.
Install the following:
We use nx to manage the packages in this repository. You don't have to install it globally. The packages themselves can be found in the packages folder.
Here are some common nx commands:
npx nx show projects (optionall with --affected)npx nx run-many --target testnpx nx test metricsnpx nx run metrics:testnpm run all -- --base=masterIn general, whenever you want to npm run $A something, instead call npx nx $A $PROJECT where $PROJECT is the name of the project you want to run it on. For example, npm run test:unit in packages/elements becomes npx nx test:unit elements.
Some quick notes to help you get started:
CTRL+Shift+B (or ⌘+Shift+B on OSX) to run the build task. This runs npm start, compiling any changes you make in the background.CTRL+Shift+D (or ⌘⇧D on OSX) to open up the debug pane. Here you can select a config to run.Have fun!
To debug the unit tests, you can place a debugger statement on the place you want to debug. Then, start the unit tests and open the dev tools to trigger the debug statement.
Install the VS Code Playwright plugin (from the recommended extensions). Then run any test from the sidebar in a test file.
We support mutation testing mutation-testing-elements with Stryker! You can run it with npx nx run PACKAGE_NAME:stryker, for example npx nx run elements:stryker.
New features are welcome! Either as requests or proposals.
npx nx run-many -t lint.npm run lint:fixnpx nx run testDon't get discouraged! We estimate that the response time from the maintainers is around 3 days or so.
Found a bug? Don't worry, we'll fix it, or you can ;)
Please report a bug report on our issues page. In this please: