If you are using nose plugin to run your tests , there are some handy tricks that we can use while running tests.
nosetests --with-xunit test_folder --xunit-file=nosetests_test_results.xml
Run test and generate a XML report:
nosetests --with-xunit test_folder --xunit-file=nosetests_test_results.xml