﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
32609	Added runtests.py support for directory path test labels.	Chris Jerdonek	Chris Jerdonek	"I noticed that `runtests.py` does its own rudimentary ""parsing"" of the provided test labels here:
https://github.com/django/django/blob/548dce50cf548e777a0c34b5485a146a0606ae73/tests/runtests.py#L128-L132

However, it would be better if it used the same logic as `DiscoverRunner.build_suite()`:
https://github.com/django/django/blob/548dce50cf548e777a0c34b5485a146a0606ae73/django/test/runner.py#L612

There are a few reasons for this. First, it would let `runtests` take into account the test tags when determining which app modules apply. Second, it would centralize the test label logic, which should simplify maintenance. (For example, I was previously unaware of this code path, which explains why some things mysteriously weren't working before.) Third, it might even permit test labels to be directory paths when used with `runtests.py`, as a free side effect. (Currently, directory paths don't seem to work with `runtests.py`, I believe for this reason.) A fourth is that `runtests.py` will fail faster if a bad test label is passed.
"	Cleanup/optimization	closed	Testing framework	dev	Normal	fixed	DiscoverRunner,runtests		Ready for checkin	1	0	0	0	0	0
