Skip to content

Enable relative test paths by setting optional source root directory #35

Description

@billiams

Currently, full paths are passed to the pytest command when running a subset of tests, i.e.:

cd /path/to/project/root && pytest /full/path/to/test.py

This prevents the ability to run tests in containers that commonly define different working directories, as the test paths will be different in those containers.

One potential solution to this issue would be to add the ability to set an optional source root directory similar to Pycharm so that test paths are then set relative to the defined source root.

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