-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpytest.ini
41 lines (35 loc) · 1.69 KB
/
pytest.ini
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
#=========================================================================
# pytest.ini
#=========================================================================
# Configuration file for py.test.
[pytest]
#-------------------------------------------------------------------------
# configure python path
#-------------------------------------------------------------------------
# We add the current directory to the python path so that we can import
# packages starting from the src directory. This is because we want to
# run pytest from the build directory, but we want to import packages
# from the src directory.
pythonpath = .
#-------------------------------------------------------------------------
# configure test collection
#-------------------------------------------------------------------------
# We explicitly do not set a pattern for collecting python classes
# yet. This avoids collecting TestHarness which we use in many of our
# PyMTL unit tests, but eventually we will need to decide on a
# replacement.
python_files = src/*/tests/*.py src/*/test_cocotb/*.py
python_classes = *Suite
python_functions = test test_*
#-------------------------------------------------------------------------
# default commandline arguments
#-------------------------------------------------------------------------
# By default do not show any traceback. This means by deafult py.test
# gives an overview of the results but not any details. Users can use
# --tb=long to get more information on a failing test. We also display
# error/warnings at the end; otherwise syntax errors won't really show
# up.
addopts = --tb=long -r Ew
markers =
slow: marks tests as slow (deselect with '-m "not slow"')
log_level=INFO