forked from ApexChainx/ApexChainx-Backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmutmut_config.py
More file actions
43 lines (32 loc) · 925 Bytes
/
Copy pathmutmut_config.py
File metadata and controls
43 lines (32 loc) · 925 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
"""mutmut configuration for SLA calculator mutation testing.
Usage:
mutmut run --paths-to-mutate=app/services/sla/
mutmut results
mutmut show <id>
Target: >70% killed mutation rate.
"""
# Paths to mutate - focus on SLA calculator domain logic
paths_to_mutate = [
"app/services/sla/",
]
# Exclude test infrastructure from mutation
paths_to_exclude = [
"*/test_*.py",
"*/conftest.py",
"*/__init__.py",
"*/types.py",
]
# Pre-mutation test command - runs tests to establish baseline
pre_mutation = "pytest --tb=short -x"
# Post-mutation test command - individual test for targeted validation
runner = "pytest --tb=short -x"
# Timeout per mutant (seconds)
tests_timeout = 30
# Number of parallel mutation workers
num_workers = 4
# Only show surviving mutants
no_progress = False
# Surviving mutants output format
show_diffs = True
# Backend to use (pytest is default)
backend = "pytest"