Skip to content

Commit

Permalink
Merge pull request #61 from Malinskiy/fix/test-annotation-duplication
Browse files Browse the repository at this point in the history
Fix/test annotation duplication
  • Loading branch information
Malinskiy authored Oct 25, 2021
2 parents 6f71fc1 + d46283f commit 6d44b8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ class TestAnnotationProducer : RunListener() {
override fun testStarted(description: Description?) {
super.testStarted(description)
if (description?.isTest == true) {
val annotations: List<String> =
val annotations: Set<String> =
(description.annotations.toList() + description.testClass.annotations.toList()).mapNotNull { annotation ->
val fqn = annotation.annotationClass.qualifiedName
val parameters =
annotation.annotationClass.memberProperties.joinToString(separator = ":") { "${it.name}=${it.getter.call(annotation)}" }
"$fqn($parameters)"
}
}.toSet()
val bundle = Bundle(1)
bundle.putStringArrayList(
"com.malinskiy.adam.junit4.android.listener.TestAnnotationProducer.v2",
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/Versions.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
object Versions {
val adam = System.getenv("GIT_TAG_NAME") ?: "0.3.4"
val adam = System.getenv("GIT_TAG_NAME") ?: "0.4.2"
val kotlin = "1.5.21"
val coroutines = "1.5.2"
val coroutinesDebug = coroutines
Expand Down

0 comments on commit 6d44b8b

Please sign in to comment.