pytest-dev / pytest-dev/pytest

Allow test selection by file:lineno

Open
#3,224 15 comments 3 reactions 1 assignee View on GitHub

@feuillemorte is already working on this.

Since Mar 4, 2018.

topic: selection type: enhancement
Dominant language
Python
Stars
14.5k
Forks
3.4k
Avg merge
2d 9h
Merged PRs (30d)
35

Description

pytest tests/test_foo.py:42 should run the (nearest) test at line 42 in tests/test_foo.py.

When it also ignores a trailing colon it would allow for easy copy'n'pasting from failures.

Via #5973:

To get a better overview of how it can work take a look at the Rspec documentation

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.