Skip to content

Commit fff468d

Browse files
author
Ivan Dyatlov
committed
Add default layer for UI tests and add Android platform support via environment and platform label
1 parent cd41335 commit fff468d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/src/main/kotlin/com/malinskiy/marathon/report/allure/AllureReporter.kt

+3-1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ class AllureReporter(
5959
params.forEach {
6060
builder.put(it.key, it.value)
6161
}
62+
builder.put("platform", "Android")
6263

6364
allureEnvironmentWriter(
6465
builder.build(), outputDirectory.absolutePath + File.separator
@@ -139,7 +140,8 @@ class AllureReporter(
139140
test.findValue<String>(Description::class.java.canonicalName)?.let { allureTestResult.setDescription(it) }
140141
test.findValue<String>(Issue::class.java.canonicalName)?.let { allureTestResult.links.add(ResultsUtils.createIssueLink(it)) }
141142
test.findValue<String>(TmsLink::class.java.canonicalName)?.let { allureTestResult.links.add(ResultsUtils.createTmsLink(it)) }
142-
143+
allureTestResult.labels.add(ResultsUtils.createLabel("layer", "UI"))
144+
allureTestResult.labels.add(ResultsUtils.createLabel("platform", "Android"))
143145
allureTestResult.labels.addAll(test.getOptionalLabels())
144146

145147
return allureTestResult

0 commit comments

Comments
 (0)