Skip to content
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

Merged
merged 1 commit into from
Jul 8, 2020

Conversation

kristfoograb
Copy link
Contributor

@kristfoograb kristfoograb commented Jul 2, 2020

…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()));
Copy link
Contributor Author

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) {
Copy link
Contributor Author

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")) {
Copy link
Contributor Author

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.

@eroshenkoam eroshenkoam merged commit 77e055b into eroshenkoam:master Jul 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants