Skip to content

Commit

Permalink
fix: fast test not working when main class is not set (#6903)
Browse files Browse the repository at this point in the history
  • Loading branch information
tpasternak authored Oct 16, 2024
1 parent b823456 commit c1bfa06
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ GeneralCommandLine createCommandLine(
getTestClassProperty(),
FastBuildTestClassFinder.getInstance(project).getTestClass(target, targetJavaInfo));

if (targetJavaInfo.mainClass().isPresent()) {
if (targetJavaInfo.mainClass().isPresent() && !targetJavaInfo.mainClass().get().isBlank()) {
commandBuilder.setMainClass(targetJavaInfo.mainClass().get());
} else {
commandBuilder.setMainClass(getTestRunner());
Expand Down

0 comments on commit c1bfa06

Please sign in to comment.