Allow to mute tests with spaces in names

This commit is contained in:
Nikolay Krasko
2019-11-01 19:50:37 +03:00
parent e3c6a1fbd8
commit 5d19b2c3c4
@@ -13,7 +13,7 @@ private class MutedTest(
val issue: String?, val issue: String?,
val hasFailFile: Boolean val hasFailFile: Boolean
) { ) {
val methodName = key.substringAfterLast(".", "").also { val methodName = key.substringAfterLast(".", "").replace("`", "").also {
if (it.isEmpty()) throw IllegalArgumentException("Can't get method name") if (it.isEmpty()) throw IllegalArgumentException("Can't get method name")
} }
val classNameKey = key.substringBeforeLast(".", "").also { val classNameKey = key.substringBeforeLast(".", "").also {