Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hudson build failed using Python & Coverage

I completed this tutorial from Joe Heck to set up Hudson for Python. Everything worked perfectly except the Coverage section. My build failed with this output:

[workspace] $ /bin/sh -xe /tmp/hudson6222564272447222496.sh
+ coverage run tests/run.py --with-xunit
You must specify at least one of -e, -x, -c, -r, or -a.

I tried to include the Execute argument, -x, but got an exception that was ultimately caused by a permissions failure:

IOError: [Errno 13] Permission denied: 'nosetests.xml'

Has anyone gotten Coverage working successfully with Hudson?

like image 718
Matt Norris Avatar asked Jun 12 '26 02:06

Matt Norris


1 Answers

You have an old version of coverage.py, it looks like 2.x of some sort. "coverage run" is new syntax with coverage.py 3.x. Download the latest coverage.py at http://pypi.python.org/pypi/coverage, and you should be good to go.

like image 108
Ned Batchelder Avatar answered Jun 13 '26 16:06

Ned Batchelder



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!