[Gradle, JS] Add exact filter by class name only

This commit is contained in:
Ilya Goncharov
2019-11-28 16:34:01 +03:00
parent 0037e74d3e
commit 3e1fe0af92
@@ -132,7 +132,13 @@ export class ExactFilter implements KotlinTestsFilter {
}
containsTest(fqn: string): boolean {
return fqn === this.fqn;
if (fqn === this.fqn) {
return true
}
// Exact filter by class name only
const regexp = RegExp(`^${escapeRegExp(this.fqn + ".")}\\w+$`);
return regexp.test(fqn)
}
}