lundi 4 avril 2016

Using django-nose and unittest-xml-reporting together - unit testing

We have a django project that using unittest-xml-reporting to provide bamboo with xml files about the test results. We would like to integrate django-nose to test for code coverage. But since django tests require a single TEST_RUNNER class, I don't see how to use in parallel both functionalities (which actually don't overlap):

for unittest-xml-reporting

TEST_RUNNER = 'xmlrunner.extra.djangotestrunner.XMLTestRunner'

for django-nose

TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'

I've tried to get into the code, but it seems messy to write some kind of hack to join the classes together. What other options are left?

Aucun commentaire:

Enregistrer un commentaire