Skip to content

EXTRA_PYTEST_ARGS variable in tools/devenv/Makefile.test #32

Open
@matt-codecov

Description

@matt-codecov

The devenv.test.* targets run all tests for those projects. Often if you have one test file failing you want to just run that test file, but there isn’t a way to do that right now.

In tools/devenv/Makefile.test, add a Makefile variable called something like EXTRA_PYTEST_ARGS which is empty by default, and add it to the invocations of pytest for each of those targets.

Users could then run something like make devenv.test.worker EXTRA_PYTEST_ARGS="apps/worker/tasks/tests/unit/test_base.py" to run just the tests for tasks/base.py.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions