-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwup.yaml.example
More file actions
104 lines (93 loc) · 2.29 KB
/
wup.yaml.example
File metadata and controls
104 lines (93 loc) · 2.29 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# WUP Configuration File
# Copy this file to wup.yaml or .wup.yaml in your project root
project:
name: "my-project"
description: "Example project configuration"
watch:
# Folders to watch (supports glob patterns)
paths:
- "app/**"
- "src/**"
- "routes/**"
- "schema/**"
# Exclude specific patterns
- "!tests/**"
- "!node_modules/**"
# Global exclude patterns
exclude_patterns:
- "*.md"
- "*.txt"
- "migrations/**"
- "__pycache__/**"
# File types to watch (empty = watch all files)
# Only changes to these file extensions will trigger tests
file_types:
- ".py"
- ".ts"
- ".jsx"
- ".tsx"
services:
# Service configurations - simplified with auto-detection
# If paths are empty, WUP auto-detects files by service name
# Example: Shell service (auto-detects files containing "users-shell")
- name: "users-shell"
type: "shell"
# paths: [] # Optional - auto-detect if empty
quick_tests:
scope: "all"
max_endpoints: 3
detail_tests:
scope: "all"
max_endpoints: 10
# Example: Web service with same domain (will detect coincidence with shell)
- name: "users-web"
type: "web"
# paths: [] # Optional - auto-detect if empty
quick_tests:
scope: "read,write"
max_endpoints: 5
detail_tests:
scope: "all"
max_endpoints: 15
# Example: Service with explicit paths (old style still works)
- name: "payments"
root: "app/payments"
paths:
- "app/payments/**"
- "routes/payments/**"
type: "auto"
quick_tests:
scope: "read"
max_endpoints: 3
- name: "auth"
root: "app/auth"
paths:
- "app/auth/**"
quick_tests:
scope: "auth"
max_endpoints: 3
detail_tests:
scope: "auth,read"
max_endpoints: 5
cpu_throttle: 0.8
notify:
type: "file"
file: "wup/notify-auth.json"
test_strategy:
quick:
debounce_s: 2
max_queue: 5
timeout_s: 10
detail:
debounce_s: 10
max_queue: 1
timeout_s: 30
testql:
# TestQL-specific configuration
scenario_dir: "scenarios/tests"
smoke_scenario: "smoke.testql.toon.yaml"
output_format: "json"
extra_args:
- "--timeout 10s"
# Enable automatic endpoint discovery from TestQL scenario files
endpoint_discovery: true