[Biopython-dev] [Bug 2640] New: Proposal: doctest for SeqRecord/biopython

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Tue Nov 4 10:51:23 UTC 2008


http://bugzilla.open-bio.org/show_bug.cgi?id=2640

           Summary: Proposal: doctest for SeqRecord/biopython
           Product: Biopython
           Version: Not Applicable
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P3
         Component: Main Distribution
        AssignedTo: biopython-dev at biopython.org
        ReportedBy: dalloliogm at gmail.com


I would like to propose to use doctest tests in biopython.
I found them very useful to understand how a script should be used, and
moreover they can act as test units.

Here it is the main documentation for unittest:
- http://www.python.org/doc/2.5.2/lib/module-doctest.html

Usually, you add a _test() function to every module, which calls the unittest
libraries, and launch it with __name__ == '__main__'.

The most significative example is added to the documentation string of every
module/function, and tested with doctest.testmod(); later, you add more tests
in a separate file, and launch them with doctest.testfile().


-- 
Configure bugmail: http://bugzilla.open-bio.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the Biopython-dev mailing list