-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestql.yaml
More file actions
84 lines (72 loc) · 1.81 KB
/
Copy pathtestql.yaml
File metadata and controls
84 lines (72 loc) · 1.81 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
# testql.yaml - TestQL configuration for mdflow project
# TestQL integration for automated testing with planfile
version: "1.0"
project:
name: mdflow
type: python
testql:
enabled: true
integration:
planfile: true
taskfile: true
# Test configuration
tests:
- name: unit-tests
description: Run unit tests
command: pytest tests/ -v
timeout: 300
required: true
- name: coverage
description: Run tests with coverage
command: pytest tests/ --cov=mdflow --cov-report=html --cov-report=term
timeout: 300
required: false
- name: lint
description: Run linting checks
command: ruff check mdflow/ tests/
timeout: 60
required: true
- name: format-check
description: Check code formatting
command: ruff format --check mdflow/ tests/
timeout: 60
required: true
- name: examples
description: Run example scripts
command: |
python examples/basic_usage.py &&
python examples/advanced_analysis.py &&
python examples/directory_scan.py &&
python examples/custom_diagrams.py
timeout: 120
required: false
# Test environments
environments:
- name: default
python: "3.11"
dependencies:
- pytest>=7
- pytest-cov
- ruff
- name: python-312
python: "3.12"
dependencies:
- pytest>=7
- pytest-cov
- ruff
# Coverage thresholds
coverage:
minimum: 70
branches: 65
functions: 75
# Reporting
reporting:
format: junit
output: test-results/
include-coverage: true
# Integration with planfile
planfile_integration:
auto-create-tickets: true
ticket-prefix: TEST
on-failure: create-ticket
on-success: close-ticket