File tree Expand file tree Collapse file tree 3 files changed +9
-12
lines changed Expand file tree Collapse file tree 3 files changed +9
-12
lines changed Original file line number Diff line number Diff line change 4141
4242 - name : Run unit tests and doctests.
4343 shell : bash -l {0}
44- run : tox -e pytest -- src tests -m "unit or (not integration and not end_to_end)" --cov=./ --cov-report=xml -n auto
44+ run : tox -e pytest -- -m "unit or (not integration and not end_to_end)" --cov=src --cov=tests --cov-report=xml -n auto
4545
4646 - name : Upload coverage report for unit tests and doctests.
4747 if : runner.os == 'Linux' && matrix.python-version == '3.8'
5050
5151 - name : Run integration tests.
5252 shell : bash -l {0}
53- run : tox -e pytest -- src tests -m integration --cov=./ --cov-report=xml -n auto
53+ run : tox -e pytest -- -m integration --cov=src --cov=tests --cov-report=xml -n auto
5454
5555 - name : Upload coverage reports of integration tests.
5656 if : runner.os == 'Linux' && matrix.python-version == '3.8'
5959
6060 - name : Run end-to-end tests.
6161 shell : bash -l {0}
62- run : tox -e pytest -- src tests -m end_to_end --cov=./ --cov-report=xml -n auto
62+ run : tox -e pytest -- -m end_to_end --cov=src --cov=tests --cov-report=xml -n auto
6363
6464 - name : Upload coverage reports of end-to-end tests.
6565 if : runner.os == 'Linux' && matrix.python-version == '3.8'
Original file line number Diff line number Diff line change @@ -175,4 +175,5 @@ def task_example():
175175 assert result .exit_code == ExitCode .OK
176176 assert "Warnings" in result .output
177177 assert "warning!!!" in result .output
178- assert result .output .count ("task_example" ) == 31
178+ # One occurrence is sometimes clipped.
179+ assert result .output .count ("task_example" ) in [30 , 31 ]
Original file line number Diff line number Diff line change 11[tox]
22envlist = pytest, sphinx
3- skipsdist = True
4- skip_missing_interpreters = True
5- whitelist_externals = python
63
74[testenv]
8- basepython = python
5+ usedevelop = true
96
107[testenv:pytest]
118conda_channels =
@@ -36,7 +33,6 @@ conda_deps =
3633 pydot
3734
3835commands =
39- pip install --no-deps -e .
4036 pytest {posargs}
4137
4238[testenv:sphinx]
@@ -71,6 +67,9 @@ warn-symbols =
7167 pytest.mark.wip = Remove ' wip' mark for tests.
7268
7369[pytest]
70+ testpaths =
71+ src
72+ tests
7473addopts = --doctest-modules
7574filterwarnings =
7675 ignore: the imp module is deprecated in favour of importlib
@@ -81,6 +80,3 @@ markers =
8180 unit: Flag for unit tests which target mainly a single function.
8281 integration: Flag for integration tests which may comprise of multiple unit tests.
8382 end_to_end: Flag for tests that cover the whole program.
84- norecursedirs =
85- .idea
86- .tox
You can’t perform that action at this time.
0 commit comments