Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Илья Миняев
assignment-1-io-library
Commits
fdb462bb
Commit
fdb462bb
authored
2 years ago
by
Nikita Akatyev
💬
Browse files
Options
Download
Email Patches
Plain Diff
Add report collection
parent
4391543c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
1 deletion
+8
-1
.gitignore
.gitignore
+1
-0
.gitlab-ci.yml
.gitlab-ci.yml
+4
-0
test.py
test.py
+3
-1
xmlrunner.pyc
xmlrunner.pyc
+0
-0
No files found.
.gitignore
View file @
fdb462bb
...
...
@@ -2,3 +2,4 @@
/read_*
/print_*
/string_*
/report.xml
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
View file @
fdb462bb
...
...
@@ -7,4 +7,8 @@ test:
stage
:
test
script
:
-
./test.py
artifacts
:
when
:
always
reports
:
junit
:
report.xml
This diff is collapsed.
Click to expand it.
test.py
View file @
fdb462bb
...
...
@@ -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
)
This diff is collapsed.
Click to expand it.
xmlrunner.pyc
0 → 100644
View file @
fdb462bb
File added
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment