Changes between Initial Version and Version 5 of Ticket #6364


Ignore:
Timestamp:
Feb 2, 2008, 9:12:06 PM (17 years ago)
Author:
Russell Keith-Magee
Comment:

I'm all in favour of the idea of greater granularity for running doctests. However, as Malcolm rightly points out, doctests already provide a multi-file option through the __tests__ dictionary. The Django test runner should supplement, not replace this approach.

Invoking parts of a __tests__ dictionary would certainly be a valuable contribution, but it doesn't completely solve the problem. Doctests can be defined inline on a method or class (the classic sense of a doctest); it would be nice to be able to invoke these individual tests, too.

I'll mark this as accepted, but for the concept, not the provided implementation. I've updated the ticket to better reflect the accepted idea.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6364

    • Property Owner changed from nobody to David Larlet
    • Property Has patch set
    • Property Needs documentation set
    • Property Triage Stage UnreviewedAccepted
    • Property Cc Russell Keith-Magee added
    • Property Patch needs improvement set
    • Property Summary Allow fine grained tests for doctests (allow splitting into many files)Allow test runner to execute individual doctests
  • Ticket #6364 – Description

    initial v5  
    1414
    1515You just need doctests files with ".txt" extension. Comments are welcome.
     16
     17'''Update''': doctests can already be split across files using !__tests!__. However, the ability to execute tests on a fine grained level would be useful.
     18
Back to Top