Skip to content

Commit 366ed48

Browse files
committed
Change py.test config.
Make warnings errors, xpass fail, and document markers.
1 parent 645ce08 commit 366ed48

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

pytest.ini

+16-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,17 @@
11
[pytest]
2-
addopts = -rXw -p no:doctest
2+
# Output fails, errors, xpass, and warnings; ignore doctest; make warnings errors
3+
addopts = -rfEXw -p no:doctest --strict
4+
5+
# Make xpass results be considered fail
6+
xfail_strict = true
7+
8+
# Document our markers
9+
markers =
10+
DOM: mark a test as a DOM tree test
11+
ElementTree: mark a test as a ElementTree tree test
12+
cElementTree: mark a test as a cElementTree tree test
13+
lxml: mark a test as a lxml tree test
14+
genshi: mark a test as a genshi tree test
15+
parser: mark a test as a parser test
16+
namespaced: mark a test as a namespaced parser test
17+
treewalker: mark a test as a treewalker test

0 commit comments

Comments
 (0)