Test discovery feature

Bug #250764 reported by Jonathan Lange
2
Affects Status Importance Assigned to Milestone
testtools
Fix Released
Wishlist
James Westby

Bug Description

Add a test discovery feature. Everyone loves these.

Pinch from bzr and trial.

Revision history for this message
Robert Collins (lifeless) wrote :

Also python 2.7/3.1 have this.

Changed in testtools:
status: New → Confirmed
importance: Undecided → Medium
Changed in testtools:
importance: Medium → Wishlist
Revision history for this message
James Westby (james-w) wrote :

I did this in subunit, but should be directly portable to testtools (any reason subunit.run doesn't
just call testtools.run?)

With a small patch they can support --discover using the discover package.

When this argument is given they just use the discover module to find tests, with
the load_tests API being used (it doesn't support test_suite) if it is there.

That requires re-implementing parts of unittest.TestProgram that is currently
used, as that doesn't support passing a testsuite.

See https://code.edge.launchpad.net/~james-w/subunit/discovery/+merge/26893

Thanks,

James

Changed in testtools:
milestone: none → next
assignee: nobody → James Westby (james-w)
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.