Skip to content

Commit

Permalink
Add default layer for UI tests and add Android platform support via e…
Browse files Browse the repository at this point in the history
…nvironment and platform label
  • Loading branch information
Ivan Dyatlov committed Jul 22, 2024
1 parent cd41335 commit fff468d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ class AllureReporter(
params.forEach {
builder.put(it.key, it.value)
}
builder.put("platform", "Android")

allureEnvironmentWriter(
builder.build(), outputDirectory.absolutePath + File.separator
Expand Down Expand Up @@ -139,7 +140,8 @@ class AllureReporter(
test.findValue<String>(Description::class.java.canonicalName)?.let { allureTestResult.setDescription(it) }
test.findValue<String>(Issue::class.java.canonicalName)?.let { allureTestResult.links.add(ResultsUtils.createIssueLink(it)) }
test.findValue<String>(TmsLink::class.java.canonicalName)?.let { allureTestResult.links.add(ResultsUtils.createTmsLink(it)) }

allureTestResult.labels.add(ResultsUtils.createLabel("layer", "UI"))
allureTestResult.labels.add(ResultsUtils.createLabel("platform", "Android"))
allureTestResult.labels.addAll(test.getOptionalLabels())

return allureTestResult
Expand Down

0 comments on commit fff468d

Please sign in to comment.