using discover with testrepository is not obvious (needs --load-list)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
testtools |
Invalid
|
Wishlist
|
Unassigned |
Bug Description
I would like to have a .testr.conf like this::
test_
(subunit uses testtools's TestProgram)
This works for running the whole suite, but when I want to run a subset of the test suite, I cannot. I get this error:
$ python -m testtools.run discover devportalbinary
Traceback (most recent call last):
File "/usr/lib/
"__main__", fname, loader, pkg_name)
File "/usr/lib/
exec code in run_globals
File "/usr/lib/
main(sys.argv, sys.stdout)
File "/usr/lib/
program = TestProgram(
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.test = loader.
File "/usr/lib/
raise ImportError('Start directory is not importable: %r' % start_dir)
ImportError: Start directory is not importable: 'devportalbinar
Not sure if this is really a testrepository bug.
You probably want --load-list $IDFILE rather than $IDLIST
-Rob