I have this little test.py
script I needs to get it running on our CI. In our local machines, most people use python 2.7, so import unittest
works. But in the CI, the environment is python 2.6, which means import unittest2
.
Currently, I'm invoking the script via
if __name__ == '__main__':
logging.basicConfig(level=logging.DEBUG, format='%(asctime)s %(message)s')
import xmlrunner
unittest2.main(testRunner=xmlrunner.XMLTestRunner(output='xml-reports'))