Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
lihaoyi committed Dec 2, 2024
1 parent e94d38e commit 6c32061
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,14 @@ private String toName(TestIdentifier identifier, Segment segment) {
case "test-template-invocation":
name = colorTheme.container().format(":" + segment.getValue());
break;
// Kotest JUnit segment types
// https://github.com/kotest/kotest/blob/1af8657ead54c6c6fc6f2ff8f54388a68bc2e7f6/kotest-runner/kotest-runner-junit5/src/jvmMain/kotlin/io/kotest/runner/junit/platform/uniqueids.kt#L19-L29
case "spec": // Same as "class" above
name = colorClassName(segment.getValue(), colorTheme.container());
break;
case "test": // same as "method" above
name = colorTheme.testMethod().format("#" + segment.getValue());
break;
default:
name = null;
break;
Expand Down

0 comments on commit 6c32061

Please sign in to comment.