Repository navigation
Expand file tree
/
Copy pathpytest.ini
More file actions
64 lines (51 loc) · 2.26 KB
/
Copy pathpytest.ini
File metadata and controls
64 lines (51 loc) · 2.26 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
[pytest]
norecursedirs = .svn tmp* .pytest_cache cfg logs
;faketests
;python_files = test_main.py
;python_files = *.py ; this is BROKEN in python 3.10.
python_files = t*.py
;ignore = Asample.py
;; The following may only be true when using run_all_tests
;; order of override commandline > run_all_tests > pytest.ini
;; addopts options are the default set of options. Anything in run_all_tests will override these.
;; Anything in commandline will override everything.
;; example: --verbosity=1 on commandline will trump --verbosity=0 in addopts
; --tb = auto/long/short/line/native/no ::: tracebacks
; --showlocals ::: only works when not using --tb=native
; *** setting capture to anything but no will result in some odd logging formatting.
; --capture=no # disable all capturing
; --capture=sys # replace sys.stdout/stderr with in-mem files
; --capture=fd # also point filedescriptors 1 and 2 to temp file
; --capture=tee-sys # combines 'sys' and '-s', capturing sys.stdout/stderr
; # and passing it along to the actual sys.stdout/stderr
; *** --color=no should be set when using file logging from trace otherwise we end up with ansi codes in the log.
; --junit-xml=report.xml ;; creates an xml results file
; -rA ::: reports everything at the end
; -r chars show extra test summary info as specified by chars:
; (f)ailed, (E)rror, (s)kipped, (x)failed, (X)passed,
; (p)assed, (P)assed with output, (a)ll except passed
; (p/P), or (A)ll. (w)arnings are enabled by default
; (see --disable-warnings), 'N' can be used to reset
; the list. (default: 'fE').
;addopts = --show-capture=all --capture=no --tb=short --color=no
addopts = --show-capture=no
--capture=no
--tb=native
--color=yes
; --showlocals
--verbosity=0
; -rfE
-rA
--disable-warnings
; --collect-only
--exitfirst
; --trace-config
; --strict-markers
-m "not xfail"
; --alluredir \Report
; verbosity 0 makes the mini results (i.e. the period or s) appear for each test
; I haven't figured out a way to disable that.
; verbosity 1 makes the mini result show PASSED/FAILED/SKIPPED
markers =
xpass: Neato freato xpassing
nondestructive