Skip to content

Commit 5f3a637

Browse files
Fix /unittest command
1 parent 5ed83ae commit 5f3a637

File tree

1 file changed

+2
-2
lines changed
  • modules/testcore/common/src/main/kotlin/com/teamwizardry/librarianlib/testcore/junit

1 file changed

+2
-2
lines changed

modules/testcore/common/src/main/kotlin/com/teamwizardry/librarianlib/testcore/junit/UnitTestCommand.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public object UnitTestCommand {
9090
val rerunStyle = Style.EMPTY
9191
.withFormatting(Formatting.BLUE)
9292
.withUnderline(true)
93-
.withClickEvent(ClickEvent(ClickEvent.Action.RUN_COMMAND, input))
93+
.withClickEvent(ClickEvent(ClickEvent.Action.RUN_COMMAND, "/$input"))
9494

9595
return Text.literal("[ $fullCount tests found | ")
9696
.append(Text.literal("${passed.size} tests passed").setStyle(passedStyle))
@@ -112,7 +112,7 @@ public class UnitTestArgument(private val registryWrapper: RegistryWrapper.Impl<
112112
}
113113

114114
override fun <S> listSuggestions(context: CommandContext<S>, suggestions: SuggestionsBuilder): CompletableFuture<Suggestions> {
115-
return CommandSource.suggestIdentifiers(registryWrapper.streamKeys().map { it.value }, suggestions, "liblib-testcore:")
115+
return CommandSource.suggestIdentifiers(registryWrapper.streamKeys().map { it.value }, suggestions)
116116
}
117117

118118
public companion object {

0 commit comments

Comments
 (0)