Skip to content

Commit

Permalink
Don't include local classes (#655)
Browse files Browse the repository at this point in the history
  • Loading branch information
KeithYokoma authored and raniejade committed Mar 16, 2019
1 parent 8206f44 commit 1e19e95
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ class SpekTestEngine : TestEngine {
.map { it.toString() }

val classSelectors = discoveryRequest.getSelectorsByType(ClassSelector::class.java)
.map {
.filter {
!(it.javaClass.isLocalClass || it.javaClass.isAnonymousClass)
}.map {
PathBuilder
.from(it.javaClass.kotlin)
.build()
Expand Down

0 comments on commit 1e19e95

Please sign in to comment.