Skip to content

Commit

Permalink
Add doctest test env
Browse files Browse the repository at this point in the history
  • Loading branch information
caleb-johnson committed Sep 6, 2024
1 parent 82504a8 commit 0e5e187
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ dependencies = [

[project.optional-dependencies]
dev = [
"qiskit-addon-sqd[test,nbtest,lint,docs]",
"qiskit-addon-sqd[test,doctest,nbtest,lint,docs]",
]
basetest = [
"tox>=4.0",
Expand Down
8 changes: 8 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ extras =
commands =
pytest --nbmake --nbmake-timeout=3000 {posargs} docs/tutorials/

[testenv:doctest]
basepython = python3.10
extras =
test
doctest
commands =
pytest --doctest-plus --doctest-only

[testenv:coverage]
deps =
coverage>=7.5
Expand Down

0 comments on commit 0e5e187

Please sign in to comment.