MANUAL does not describe testtools.run support for discovery

Bug #592490 reported by Robert Collins
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
testtools
Fix Released
Medium
Robert Collins

Bug Description

And it should.

Related branches

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

James, I'm happy to write this up, but as python-discover isn't in lucid I need some more tuits before I can experience it myself.

Perhaps you could give me a sample command line invocation of testtools.run w/discover, and I'll turn that into prose.

thanks,
Rob

Revision history for this message
James Westby (james-w) wrote : Re: [Bug 592490] Re: MANUAL does not describe testtools.run support for discovery

On Sun, 13 Jun 2010 05:21:40 -0000, Robert Collins <email address hidden> wrote:
> James, I'm happy to write this up, but as python-discover isn't in lucid
> I need some more tuits before I can experience it myself.
>
> Perhaps you could give me a sample command line invocation of
> testtools.run w/discover, and I'll turn that into prose.

The basic is

  python -m testtools.run discover

I think you can specify a path for the root of the discovery with

  python -m testtools.run discover path

There are also a couple of options, one for a pattern to match on the
modules, defaulting to "test_*.py" I believe. That means
"tests/__init__.py" won't be found.

I can experiment more if you want to do more than point to 2.7 unittest
documentation.

Thanks,

James

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 592490] Re: MANUAL does not describe testtools.run support for discovery

Turns out that the help in the current patch doesn't show the discover
text - search for AS_MAIN in testtools/run.py to see what I mean.

-Rob

Changed in testtools:
status: Triaged → Fix Released
assignee: nobody → Robert Collins (lifeless)
milestone: none → next
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.