-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce suite name and some bugs fixing #21
Conversation
kristfoograb
commented
Jul 2, 2020
•
edited
Loading
edited
- Introduce suite name - raised by Group name is missing in full test name / suites info not populated #8
- Remove exporting of duplicate test - raised by Incorrect test count in release 1.8.0 #22
- Fix duration not shown when time taken for test run is less than 1 second
…n not shown when time taken for test run is less than 1 second
@@ -80,7 +80,8 @@ public TestResult format(final ExportMeta meta, final JsonNode node) { | |||
if (Objects.nonNull(result.getStart())) { | |||
if (node.has(DURATION)) { | |||
final Double durationText = node.get(DURATION).get(VALUE).asDouble(); | |||
result.setStop(result.getStart() + TimeUnit.SECONDS.toMillis(durationText.longValue())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix test run that take lesser than 1 second will show as 0 second in allure report.
@@ -139,6 +144,17 @@ private void runUnsafe() throws Exception { | |||
} | |||
} | |||
|
|||
private ExportMeta getTestMeta(ExportMeta meta, JsonNode testableSummary) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure suite name is captured and exported as part of JSON so that allure report when generate, the test will be categorised by suite
} | ||
if (test.has(TYPE) && test.get(TYPE).get(NAME).textValue().equals("ActionTestMetadata")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe the introduction of unit test support has resulted in duplicate tests being exported in JSON. When allure report is generated, the number of tests shown are double.