[Biopython-dev] Need guidance.

Peter Cock p.j.a.cock at googlemail.com
Thu Jul 6 21:14:32 UTC 2017

On Thu, Jul 6, 2017 at 8:46 PM, Adam Kurkiewicz <adam at kurkiewicz.pl> wrote:
> Hi,
> I've been just having a look at the pull request.
> Please correct me if I'm wrong.
> 1. At the moment one of the ways to run tests locally is to execute
> `python Tests/run_tests.py` from the project's main directory.

Close, but no. This is what the Biopython test framework
expects (where the ... represents possible options):

$ cd Tests
$ python run_tests.py [...]

All the paths assume the tests are run from that directory.

If you have suggestions for clarifications to the testing
chapter in the tutorial, that'd be great.

Does that solve the following queries?

For the connivence functionality of being able to run
doctests in a single file directly by executing the
single file, we normally use this snippet:

if __name__ == "__main__":
    from Bio._utils import run_doctest

The point of this code is to take care of the path.


More information about the Biopython-dev mailing list