@@ -10,18 +10,18 @@ The easiest way to run coverage is through the built-in Tux CLI:
10
10
11
11
``` bash
12
12
# Run tests with coverage
13
- poetry run tux dev test
13
+ poetry run tux test run
14
14
15
15
# Run tests without coverage (faster)
16
- poetry run tux dev test- quick
16
+ poetry run tux test quick
17
17
18
18
# Generate coverage reports
19
- poetry run tux dev coverage --format=html
20
- poetry run tux dev coverage --format=xml
21
- poetry run tux dev coverage --fail-under=90
19
+ poetry run tux test coverage --format=html
20
+ poetry run tux test coverage --format=xml
21
+ poetry run tux test coverage --fail-under=90
22
22
23
23
# Clean coverage files
24
- poetry run tux dev coverage-clean
24
+ poetry run tux test coverage-clean
25
25
```
26
26
27
27
### Direct pytest Commands
@@ -45,16 +45,16 @@ Coverage functionality is integrated into the main CLI:
45
45
46
46
``` bash
47
47
# Run tests with coverage report
48
- poetry run tux dev coverage
48
+ poetry run tux test coverage
49
49
50
50
# Generate HTML report
51
- poetry run tux dev coverage --format=html
51
+ poetry run tux test coverage --format=html
52
52
53
53
# Clean coverage files
54
- poetry run tux dev coverage-clean
54
+ poetry run tux test coverage-clean
55
55
56
56
# See all available options
57
- poetry run tux dev coverage --help
57
+ poetry run tux test coverage --help
58
58
```
59
59
60
60
## Configuration
@@ -119,13 +119,13 @@ TOTAL 179 151 62 0 15.64%
119
119
Generates a detailed interactive HTML report in ` htmlcov/ ` :
120
120
121
121
``` bash
122
- poetry run tux dev coverage --format=html
122
+ poetry run tux test coverage --format=html
123
123
# Generates htmlcov/index.html
124
124
125
125
# Open the report in browser
126
- poetry run tux dev coverage --format=html --open
126
+ poetry run tux test coverage --format=html --open
127
127
# or open it separately
128
- poetry run tux dev coverage-open
128
+ poetry run tux test coverage-open
129
129
```
130
130
131
131
The HTML report provides:
@@ -140,7 +140,7 @@ The HTML report provides:
140
140
For CI/CD integration:
141
141
142
142
``` bash
143
- poetry run tux dev coverage --format=xml
143
+ poetry run tux test coverage --format=xml
144
144
# Generates coverage.xml
145
145
```
146
146
@@ -149,7 +149,7 @@ poetry run tux dev coverage --format=xml
149
149
Machine-readable format:
150
150
151
151
``` bash
152
- poetry run tux dev coverage --format=json
152
+ poetry run tux test coverage --format=json
153
153
# Generates coverage.json
154
154
```
155
155
@@ -177,7 +177,7 @@ def test_new_feature():
177
177
Run coverage reports to identify untested code:
178
178
179
179
``` bash
180
- poetry run tux dev coverage | grep " 0.00%"
180
+ poetry run tux test coverage | grep " 0.00%"
181
181
```
182
182
183
183
### 3. Exclude Appropriate Code
0 commit comments