launchpad-dev team mailing list archive
-
launchpad-dev team
-
Mailing list archive
-
Message #05144
Re: performance tuesday - time for a spike on testing
On Wed, Oct 13, 2010 at 2:06 AM, Benji York <benji.york@xxxxxxxxxxxxx> wrote:
>> I wonder if we can just concatenate the doctests into a single big one
>> rather than run them individually with disgusting hacks to avoid the
>> intermediary teardowns? Might take some work fixing things so line
>> numbers and filenames of failures are reported correctly - not sure if
>> doctest natively supports loading the test from multiple files.
>
> Doctest doesn't, but I don't think it would be hard to make a Manuel
> plugin that would load a set of doctests and run them as a single test
> while continuing to report failures with the original file names and
> line numbers.
We don't really have ugly hacks; see PageStoryTest. We could manually
assemble a doctest rather than a DocFileCase, but I think its
diminishing returns: we're broadly moving away from that style of
testing anyway, so there's no need to invest further.
If someone wants to - be my guest ;)
-Rob
References