Skip to content

Commit 4b5e4bb

Browse files
committed
chore: Removes doctest from default pytest cmd
VS Codes test discovery has a bug where tests are not detected if you are using doctest in your default pytest env
1 parent 3a9b03e commit 4b5e4bb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
run: pip install .[dev]
2626

2727
- name: Unittests
28-
run: pytest
28+
run: pytest --doctest-modules
2929

3030
- name: Lint
3131
run: black --diff --check --verbose .
@@ -45,7 +45,7 @@ jobs:
4545
- name: Coverage report
4646
run: |
4747
pip install .[dev]
48-
pytest
48+
pytest --doctest-modules
4949
shell: bash
5050

5151
- name: Upload coverage to Codecov

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ profile = "black"
1515

1616
[tool.pytest.ini_options]
1717
minversion = "7.0"
18-
addopts = "-v --cov=fortls --cov-report=html --cov-report=xml --cov-context=test --doctest-modules"
18+
addopts = "-v --cov=fortls --cov-report=html --cov-report=xml --cov-context=test"
1919
testpaths = ["fortls", "test"]

0 commit comments

Comments
 (0)