Skip to content

Open-source gym & body-weight tracker, now in the App Store (iPhone + Apple Watch) and as an Android APK. Plan routines, log workouts, see which muscles are trained, import from Strong/Hevy/FitNotes. Self-host it or use it on the phone alone.

Tests: Stryker mutation testing on the MCP handlers

Pengboi4143ab8676ee
diff --git a/.gitignore b/.gitignore
index 12881fa7a..ff8dc4327 100644
--- a/.gitignore
+++ b/.gitignore
@@ -13,3 +13,8 @@ frontend/dist/
node_modules/
*.log
.DS_Store
+
+# Mutation-testing artifacts (mcp/) — reports/ is the HTML output, .stryker-tmp/ holds the
+# backing copy used by `inPlace` mode during a run. Both regenerated on every `stryker run`.
+mcp/reports/
+mcp/.stryker-tmp/
diff --git a/mcp/.stryker.conf.json b/mcp/.stryker.conf.json
new file mode 100644
index 000000000..a564d4510
--- /dev/null
+++ b/mcp/.stryker.conf.json
@@ -0,0 +1,29 @@
+{
+ "$schema": "./node_modules/@stryker-mutator/core/schema/stryker-schema.json",
+ "packageManager": "npm",
+ "testRunner": "vitest",
+ "vitest": {
+ "configFile": "vitest.config.js",
+ "related": false
+ },
+ "coverageAnalysis": "perTest",
+ "mutate": [
+ "src/state.js",
+ "src/labels.js",
+ "src/tools.js"
+ ],
+ "testFiles": [
+ "test/**/*.test.js"
+ ],
+ "inPlace": true,
+ "ignorePatterns": [],
+ "thresholds": {
+ "high": 80,
+ "low": 60,
+ "break": 0
+ },
+ "reporters": ["html", "progress", "clear-text"],
+ "concurrency": 2,
+ "disableTypeChecks": true,
+ "cleanTempDir": true
+}