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
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"))
Problem
I've cloned this repo and am using it in GitLab due to its CI/CD options (clone: https://gitlab.com/CarlosSMA/flask-base).
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 thetest()
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:The text was updated successfully, but these errors were encountered: