Files
OwnCord/Server/.gremlins.yaml
T
jevb 5cec992c1f chore: add dev tooling — Stryker, gremlins, k6, toxiproxy, Coraza WAF, Zod
Install and configure mutation testing (Stryker for client, go-gremlins
for server), load testing (k6), chaos testing (toxiproxy), WAF middleware
(Coraza with OWASP rules, opt-in via waf_enabled config), and Zod for
runtime schema validation. All tools verified building cleanly.
2026-04-01 13:49:06 +02:00

38 lines
904 B
YAML

# go-gremlins mutation testing configuration
# Run: gremlins unleash --config .gremlins.yaml
unleash:
# Packages to mutate
packages:
- ./ws/...
- ./api/...
- ./auth/...
- ./db/...
- ./config/...
- ./storage/...
- ./updater/...
# Run tests with race detector
test_flags: "-race -count=1"
# Timeout per mutant test run
timeout: 60s
# Number of parallel workers
workers: 4
# Mutation operators to apply
mutant_types:
- CONDITIONALS_BOUNDARY # < to <=, > to >=
- CONDITIONALS_NEGATION # == to !=
- INCREMENT_DECREMENT # ++ to --
- INVERT_NEGATIVES # -x to x
- ARITHMETIC_BASE # + to -, * to /
- INVERT_LOGICAL # && to ||
- INVERT_LOOPCTRL # break to continue
- REMOVE_SELF_ASSIGNMENTS # x += 1 to x
# Thresholds for pass/fail
threshold:
efficacy: 60