-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Move doctests into Makefile and run with test-py #9929
Copy link
Copy link
Closed
Labels
Lead: @scottbarnesIssues overseen by Scott (Community Imports)Issues overseen by Scott (Community Imports)Priority: 2Important, as time permits. [managed]Important, as time permits. [managed]Theme: TestingInvolves work related to testing infrastructure, development, and ops. [managed]Involves work related to testing infrastructure, development, and ops. [managed]Type: Feature RequestIssue describes a feature or enhancement we'd like to implement. [managed]Issue describes a feature or enhancement we'd like to implement. [managed]
Metadata
Metadata
Assignees
Labels
Lead: @scottbarnesIssues overseen by Scott (Community Imports)Issues overseen by Scott (Community Imports)Priority: 2Important, as time permits. [managed]Important, as time permits. [managed]Theme: TestingInvolves work related to testing infrastructure, development, and ops. [managed]Involves work related to testing infrastructure, development, and ops. [managed]Type: Feature RequestIssue describes a feature or enhancement we'd like to implement. [managed]Issue describes a feature or enhancement we'd like to implement. [managed]
Proposal
We could (1) have our unit tests in one spot and (2) run them only once if we run
pytestwith--doctest-modulesin theMakefile'stest-pysection. This feature is much desired (see, e.g., #9797 (comment)).Justification
No response
Breakdown
Requirements Checklist
scripts/run_doctest.shthat can be removed without causing errors. (Related filesbelow)--ignoreisn't needed for that file.test-pyinMakefileto also run--doctest-modules.docker compose run --rm web make test-pyruns successfully.Related files
scripts/run_doctests.shMakefileTo jump start things, here's a
diffwith files that it seems can have their ignore removed fromrun_doctests.sh:Stakeholders
Instructions for Contributors
Please run these commands to ensure your repository is up to date before creating a new branch to work on this issue and each time after pushing code to Github, because the pre-commit bot may add commits to your PRs upstream.