You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 7, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 7, 2025. It is now read-only.
Tests should export logs in order to improve pipeline integration #222
While doing the process, I've noticed that the tests done in the manage.py file don't export artifact logs in JUnit, and thus the GitLab pipeline can't show what tests were made, and their respective status and duration.
For now, I've implemented the xmlrunner lib in the test() function, however this doesn't seem to be the best solution, and I'd like to avoid using news libs.
Temporary fix
The following code is available on the feat-tests branch:
@manager.commanddeftest():
"""Run the unit tests."""importunittestimportxmlrunnertest_results=xmlrunner.XMLTestRunner(output="tests-reports", outsuffix='log',).run(unittest.TestLoader().discover("tests"))
Activity
abhisuri97 commentedon Oct 21, 2022
Can you make a pull request for this. I'll merge it in.