astropy/astropy — Issue #124: Passing python setup.py test options to py.test
Author: astrofrog
Created: 2012-01-07 11:17:39+00:00
State: open

py.test has some useful options, for example to output the tests in JUnit XML format (useful e.g. for Jenkins):

py.test -v --junitxml junit.xml --cov-report xml --cov my_project

Since the primary way of running tests in astropy is via:

python setup.py test

I was wondering whether we should pass any options that are not already catched in ``astropy_test`` directly to ``py.test``? Alternatively, could we hardcode the three options above?

@jiffyclib, @eteq, @mdboom, @iguananaut - any thoughts?