Quantcast
Channel: Planet Plone - Where Developers And Integrators Write
Viewing all articles
Browse latest Browse all 3535

Reinout van Rees: Nose testing corner case: executable .py files

$
0
0

We're using nose to run our tests. Easy test discovery and so. So I also went after some existing internal libraries and simplified the test running there.

There were problems though with one library: the docstrings inside the python modules weren't being run. In a similar setup in another library, everything was fine.

I googled some and found the answer on stackoverflow: nose by default skips executable *.py files...

And the files in that single library were executable for historical reasons...

Solution: pass the --exe option to nose and they're not skipped anymore.


Viewing all articles
Browse latest Browse all 3535

Trending Articles