pytest-dev / pytest-dev/pytest
Allow test selection by file:lineno
Open
@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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.