Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-18435

Support doctests under pytest in CI

    XMLWordPrintable

    Details

      Description

      Doctests are a way to include examples in reStructuredText and docstrings in a way that they can be validated (in terms of a runnability and accuracy of documented output). Pytest can run doctests, but naively implementing doctests in https://github.com/lsst/verify means that lose the ability to run pytest on individual test modules (see DM-17205).

      This story is to identify the best way to run doctests as part of pytest and to update our test setup so that doctests become part of the default test pattern for lsst_distrib.

      Also evaluate https://github.com/astropy/pytest-doctestplus

        Attachments

          Issue Links

            Activity

            There are no comments yet on this issue.

              People

              Assignee:
              jsick Jonathan Sick
              Reporter:
              jsick Jonathan Sick
              Watchers:
              Jonathan Sick
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:

                  CI Builds

                  No builds found.