Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
SquirrelJME
Commits
24ffbc63
Commit
24ffbc63
authored
Aug 17, 2021
by
Stephanie Gawroriski
Browse files
Correct JUnit time to seconds.
parent
ae2c5905
Pipeline
#46207
passed with stages
in 6 minutes and 39 seconds
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
buildSrc/src/main/java/cc/squirreljme/plugin/multivm/VMTestWorkAction.java
View file @
24ffbc63
...
@@ -276,13 +276,16 @@ public abstract class VMTestWorkAction
...
@@ -276,13 +276,16 @@ public abstract class VMTestWorkAction
LocalDateTime
.
ofInstant
(
Instant
.
ofEpochMilli
(
__clockStart
),
LocalDateTime
.
ofInstant
(
Instant
.
ofEpochMilli
(
__clockStart
),
ZoneId
.
systemDefault
()));
ZoneId
.
systemDefault
()));
// Duration in seconds
double
durationSeconds
=
__nsDur
/
1_000_000_000
D
;
// Open test suite
// Open test suite
__out
.
printf
(
"<testsuite name=\"%s\" tests=\"%d\" "
+
__out
.
printf
(
"<testsuite name=\"%s\" tests=\"%d\" "
+
"skipped=\"%d\" failures=\"%d\" errors=\"%d\" "
+
"skipped=\"%d\" failures=\"%d\" errors=\"%d\" "
+
"timestamp=\"%s\" hostname=\"%s\" time=\"%.3f\" "
+
"timestamp=\"%s\" hostname=\"%s\" time=\"%.3f\" "
+
">"
,
">"
,
__testName
,
numTests
,
numSkipped
,
numFailed
,
numFailed
,
__testName
,
numTests
,
numSkipped
,
numFailed
,
numFailed
,
nowTimestamp
,
__vmName
,
__nsDur
/
1_000_000
D
);
nowTimestamp
,
__vmName
,
durationSeconds
);
__out
.
println
();
__out
.
println
();
// Begin properties
// Begin properties
...
@@ -308,7 +311,7 @@ public abstract class VMTestWorkAction
...
@@ -308,7 +311,7 @@ public abstract class VMTestWorkAction
// Begin test case
// Begin test case
__out
.
printf
(
"<testcase name=\"%s\" classname=\"%s\" "
+
__out
.
printf
(
"<testcase name=\"%s\" classname=\"%s\" "
+
"time=\"%.3f\">"
,
"time=\"%.3f\">"
,
__testName
,
__testName
,
__nsDur
/
1_000_000
D
);
__testName
,
__testName
,
durationSeconds
);
__out
.
println
();
__out
.
println
();
// Failed tests use this tag accordingly, despite there being a
// Failed tests use this tag accordingly, despite there being a
...
...
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