-
Notifications
You must be signed in to change notification settings - Fork 23
Conversation
@@ -179,4 +182,28 @@ open class AllureRunListener(private val lifecycle: AllureLifecycle = AllureComm | |||
return container | |||
} | |||
|
|||
private fun getIgnoredMessage(description: Description): StatusDetails { | |||
val ignore = description.getAnnotation(Ignore::class.java) | |||
val message = if ((ignore != null) && ignore.value.isNotEmpty()) |
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.
if (ignore?.value?.isNotEmpty() == true)
return StatusDetails(message = message) | ||
} | ||
|
||
private fun createTestResult(description: Description): TestResult { |
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.
Можно createTestResult(description: Description): TestResult = TestResult(
)
Label("testClass", description.className), | ||
Label("testMethod", description.methodName), | ||
Label("suite", getClassDisplayName(description))) | ||
+ getLabels(description) |
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.
Почему бы эти лейблы тоже не генерить в getLabels()?
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.
Так было изначально, я пока думаю не трогать
@@ -2,6 +2,7 @@ apply plugin: 'kotlin' | |||
|
|||
dependencies { | |||
implementation "org.jetbrains.kotlin:kotlin-stdlib:${kotlinVersion}" | |||
implementation "junit:junit:${jUnitVersion}" |
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.
кажется, фигурные скобки не нужны
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.
будет рефакторинг - думаю снесу здесь и везде
No description provided.