Commit fdb462bb authored by Nikita Akatyev's avatar Nikita Akatyev 💬
Browse files

Add report collection

parent 4391543c
......@@ -2,3 +2,4 @@
/read_*
/print_*
/string_*
/report.xml
......@@ -7,4 +7,8 @@ test:
stage: test
script:
- ./test.py
artifacts:
when: always
reports:
junit: report.xml
......@@ -5,6 +5,7 @@ __unittest = True
import subprocess
import re
import unittest
import xmlrunner
from subprocess import CalledProcessError, Popen, PIPE
#-------helpers---------------
......@@ -538,4 +539,5 @@ _start:
if __name__ == "__main__":
unittest.main()
with open('report.xml', 'w') as report:
unittest.main(testRunner=xmlrunner.XMLTestRunner(output=report), failfast=False, buffer=False, catchbreak=False)
File added
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment