Skip to content

Configurable doctest modules/paths #167

Description

@NellyWhads

Reading through docs and usage examples and trying various things myself, I believe there's a usage gap that can be addressed.

As a user of xdoctest in a complex project which include multiple sub-modules, the following questions come to mind:

  1. How does a user configure multiple files/modules for xdoctest to run with a single command?
  2. How does a user trigger xdoctest with a default configuration for a project?
  3. How does a user re-use said configuration with the xdoctest pytest plugin?

Proposal:

  1. Add support for running xdoctest on multiple modules at a time.
  2. Add support an explicit parameter name for the args option (which after 1., can accept multiple module paths)
  3. Expose all of the CLI parameters to the pyproject.toml file under tool.xdoctest
  4. Override configured parameters using CLI invocation arguments, of course

This would mimic the behavior of popular tools such as Coverage.py, which allows collecting coverage from specific locations as opposed to only one root module, all configurable through a single tool.coverage section in the pyproject.toml.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions