Uninett / zinolib

Python library for zino
Apache License 2.0
1 stars 3 forks source link

Make xml test reports #32

Closed hmpf closed 10 months ago

hmpf commented 11 months ago

For instance unittest-xml-reporting can do this, but it needs to be run in such a way that testing locally on the command-line still works.

hmpf commented 11 months ago

Unfinished:

if __name__ == '__main__':                                                         
    import sys                                                                     
    import xmlrunner                                                               
    import unittest                                                                
    tests = unittest.TestLoader().discover('.')                                    
    testRunner = xmlrunner.XMLTestRunner(output='.reports')                        
    testRunner.run(tests)                                                                                                                                                                  
#     unittest.main(                                                               
#         testRunner=xmlrunner.XMLTestRunner(output='.reports'),                   
#         # these make sure that some options that are not applicable              
#         # remain hidden from the help menu.                                      
#         failfast=False, buffer=False, catchbreak=False)
lunkwill42 commented 10 months ago

Fixed in #34