-
Notifications
You must be signed in to change notification settings - Fork 61
Expand file tree
/
Copy pathpytest.ini
More file actions
55 lines (46 loc) · 1.29 KB
/
pytest.ini
File metadata and controls
55 lines (46 loc) · 1.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
[pytest]
# Pytest configuration for Design Computing Python Course
# Test discovery patterns
python_files = test_*.py
python_classes = Test*
python_functions = test_*
# Output options
addopts =
-v
--tb=short
--strict-markers
--color=yes
-p no:warnings
# Console output formatting
console_output_style = progress
# Markers for different exercise types
markers =
exercise0: Exercise 0 tests
exercise1: Exercise 1 tests
exercise2: Exercise 2 tests
exercise3: Exercise 3 tests
exercise4: Exercise 4 tests
set1: Set 1 tests
set2: Set 2 tests
set3: Set 3 tests
set4: Set 4 tests
set5: Set 5 tests
set6: Set 6 tests
set8: Set 8 tests
mock_input: Tests that use mocked input
timeout: Tests with timeout constraints
api_call: Tests that make external API calls
slow: Slow running tests
# Timeout defaults (in seconds)
timeout = 10
timeout_method = thread
# Test paths
testpaths = .
# Show extra test summary info
# -r chars: (f)ailed, (E)error, (s)skipped, (x)failed, (X)passed, (p)passed, (P)passed with output, (a)all except passed
# We'll use 'fEsx' to show failures, errors, skipped, and xfails
# adding A shows all output
# Minimum version
minversion = 7.0
# Disable cachedir in student directories
# cache_dir = /tmp/pytest_cache