Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pytestrunner
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
pytestrunner
Commits
9bf94bf3
Commit
9bf94bf3
authored
Nov 28, 2011
by
Sander Mathijs van Veen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved unit test status to begin of line.
parent
f3e2921d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
15 deletions
+16
-15
runner.py
runner.py
+16
-15
No files found.
runner.py
View file @
9bf94bf3
...
@@ -42,7 +42,21 @@ class TextTestRunner(unittest.TextTestRunner):
...
@@ -42,7 +42,21 @@ class TextTestRunner(unittest.TextTestRunner):
timeTaken
=
stopTime
-
startTime
timeTaken
=
stopTime
-
startTime
result
.
printErrors
()
result
.
printErrors
()
self
.
stream
.
write
(
'%s: %d test%s in %.3fs '
\
if
not
result
.
wasSuccessful
():
if
self
.
color
:
msg
=
'
\
033
[0;31mFAIL
\
033
[1;m'
else
:
msg
=
'FAIL'
self
.
stream
.
write
(
msg
)
else
:
if
self
.
color
:
msg
=
'
\
033
[0;32mOK
\
033
[0;m'
else
:
msg
=
'OK'
self
.
stream
.
write
(
msg
)
self
.
stream
.
write
(
' %s: %d test%s in %.3fs '
\
%
(
test
.
filename
,
result
.
testsRun
,
%
(
test
.
filename
,
result
.
testsRun
,
result
.
testsRun
!=
1
and
's'
or
''
,
timeTaken
))
result
.
testsRun
!=
1
and
's'
or
''
,
timeTaken
))
...
@@ -60,12 +74,6 @@ class TextTestRunner(unittest.TextTestRunner):
...
@@ -60,12 +74,6 @@ class TextTestRunner(unittest.TextTestRunner):
infos
=
[]
infos
=
[]
if
not
result
.
wasSuccessful
():
if
not
result
.
wasSuccessful
():
if
self
.
color
:
msg
=
'
\
033
[0;31mFAILED
\
033
[1;m'
else
:
msg
=
'FAILED'
self
.
stream
.
write
(
msg
)
failed
,
errored
=
map
(
len
,
(
result
.
failures
,
result
.
errors
))
failed
,
errored
=
map
(
len
,
(
result
.
failures
,
result
.
errors
))
if
failed
:
if
failed
:
...
@@ -81,13 +89,6 @@ class TextTestRunner(unittest.TextTestRunner):
...
@@ -81,13 +89,6 @@ class TextTestRunner(unittest.TextTestRunner):
else
:
else
:
msg
=
'errors=%d'
msg
=
'errors=%d'
infos
.
append
(
msg
%
errored
)
infos
.
append
(
msg
%
errored
)
else
:
if
self
.
color
:
msg
=
'
\
033
[0;32mOK
\
033
[0;m'
else
:
msg
=
'OK'
self
.
stream
.
write
(
msg
)
if
skipped
:
if
skipped
:
if
self
.
color
:
if
self
.
color
:
...
...
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