Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CoTA
examples
cota-runner-jdk17-junit5
Commits
4c920f30
Commit
4c920f30
authored
Oct 28, 2023
by
Lückemeyer
Browse files
adjusted runner result output from TestIdentifier to source class and package
parent
24a881d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/de/hftstuttgart/dta/Testrunner.java
View file @
4c920f30
...
...
@@ -256,8 +256,8 @@ public class Testrunner
resultSummary
.
results
.
addAll
(
successes
.
stream
().
map
(
s
->
{
Result
result
=
new
Result
();
result
.
packageName
=
s
.
getClass
().
getPackageName
();
result
.
className
=
s
.
getClass
().
getName
();
result
.
packageName
=
s
.
getSource
().
get
().
getClass
().
getPackageName
();
result
.
className
=
s
.
getSource
().
get
().
getClass
().
getName
();
result
.
name
=
s
.
getDisplayName
();
result
.
state
=
Result
.
State
.
SUCCESS
.
ordinal
();
...
...
@@ -268,8 +268,8 @@ public class Testrunner
resultSummary
.
results
.
addAll
(
summary
.
getFailures
().
stream
().
map
(
f
->
{
Result
result
=
new
Result
();
result
.
packageName
=
f
.
getTestIdentifier
().
getClass
().
getPackageName
();
result
.
className
=
f
.
getTestIdentifier
().
getClass
().
getName
();
result
.
packageName
=
f
.
getTestIdentifier
().
getSource
().
get
().
getClass
().
getPackageName
();
result
.
className
=
f
.
getTestIdentifier
().
getSource
().
get
().
getClass
().
getName
();
result
.
name
=
f
.
getTestIdentifier
().
getDisplayName
();
result
.
state
=
Result
.
State
.
FAILURE
.
ordinal
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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