-
Notifications
You must be signed in to change notification settings - Fork 45
Conversation
@SerializedName("ignoredCount") | ||
val ignoredCount: Int, | ||
|
||
@SerializedName("failedCount") |
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.
Snake notation? I guess it is more common.
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.
Ah, yes yes, will do
@@ -15,6 +15,7 @@ dependencies { | |||
compile libraries.commanderAndroid | |||
compile libraries.apacheCommonsIo | |||
compile libraries.apacheCommonsLang | |||
compile libraries.gson |
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.
Moshi?
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.
KotlinJsonAdapter not released yet
} | ||
.map { adbDeviceTestRuns -> | ||
when (args.shard) { | ||
// In "shard=true" mode test runs from all devices combined into one suite of tests. |
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.
Indentation?
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.
Autoformat :(
@@ -74,7 +74,7 @@ private fun parseInstrumentationEntry(str: String): InstrumentationEntry = | |||
} | |||
.let { statusCode -> | |||
when (statusCode) { | |||
null -> throw IllegalStateException("Unknown test result status code [$statusCode], please report that to Composer maintainers $str") | |||
null -> throw IllegalStateException("Unknown test status status code [$statusCode], please report that to Composer maintainers $str") |
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.
"status status code" or just "status code"?
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.
my bad, thanks
status = when (status) { | ||
AdbDeviceTest.Status.Passed -> HtmlTest.Status.Passed | ||
AdbDeviceTest.Status.Ignored -> HtmlTest.Status.Ignored | ||
is AdbDeviceTest.Status.Failed -> HtmlTest.Status.Failed |
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.
'is'?
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.
yes, it's a class, not an object
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.
Ahh, ok
Part of #11.
@ming13, @dmitry-novikov PTAL — it's core of implementation, no tests yet since, as I've said I had to "duplicate" some classes like Test/Suite/Device across different layers, I now have an idea to divide Composer into separate (in code) pieces:
Test
entity.Test
andTestRun
entities that have not only basic test info but also screenshots, files and some meta info.Then JUnit4 and HTML reports can be completely unaware of underlying details of execution.