testtools-dev team mailing list archive
-
testtools-dev team
-
Mailing list archive
-
Message #01094
[Merge] lp:~lifeless/testtools/discover-list into lp:testtools
Robert Collins has proposed merging lp:~lifeless/testtools/discover-list into lp:testtools.
Requested reviews:
testtools committers (testtools-committers)
For more details, see:
https://code.launchpad.net/~lifeless/testtools/discover-list/+merge/130253
It was bust. Can has fix.
--
https://code.launchpad.net/~lifeless/testtools/discover-list/+merge/130253
Your team testtools developers is subscribed to branch lp:testtools.
=== modified file '.testr.conf'
--- .testr.conf 2010-12-06 07:25:09 +0000
+++ .testr.conf 2012-10-17 22:50:36 +0000
@@ -1,4 +1,4 @@
[DEFAULT]
-test_command=PYTHONPATH=. python -m subunit.run $LISTOPT $IDOPTION testtools.tests.test_suite
+test_command=python -m subunit.run discover $LISTOPT $IDOPTION .
test_id_option=--load-list $IDFILE
test_list_option=--list
=== modified file 'NEWS'
--- NEWS 2012-09-08 17:27:37 +0000
+++ NEWS 2012-10-17 22:50:36 +0000
@@ -12,6 +12,11 @@
* The ``testtools.matchers`` package has been split up. No change to the
public interface. (Jonathan Lange)
+Improvements
+------------
+
+* ``python -m testtools.run discover . --list`` now works. (Robert Collins)
+
0.9.16
~~~~~~
=== modified file 'testtools/run.py'
--- testtools/run.py 2011-07-26 23:34:12 +0000
+++ testtools/run.py 2012-10-17 22:50:36 +0000
@@ -269,7 +269,7 @@
help="Pattern to match tests ('test*.py' default)")
parser.add_option('-t', '--top-level-directory', dest='top', default=None,
help='Top level directory of project (defaults to start directory)')
- parser.add_option('-l', '--list', dest='listtests', default=False,
+ parser.add_option('-l', '--list', dest='listtests', default=False, action="store_true",
help='List tests rather than running them.')
parser.add_option('--load-list', dest='load_list', default=None,
help='Specify a filename containing the test ids to use.')
Follow ups