Skip to content

Commit

Permalink
[SUREFIRE-2223] Surefire evaluates parameter jvm before skip
Browse files Browse the repository at this point in the history
This closes #703
  • Loading branch information
michael-o committed Dec 22, 2023
1 parent ef4f2bf commit c006d8e
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -876,6 +876,11 @@ private String getDefaultExcludes() {

@Override
public void execute() throws MojoExecutionException, MojoFailureException {
if (isSkipExecution()) {
getConsoleLogger().info("Tests are skipped.");
return;
}

cli = commandLineOptions();
// Stuff that should have been final
setupStuff();
Expand Down Expand Up @@ -1030,10 +1035,6 @@ DefaultScanResult scanDependencies() throws MojoFailureException {

boolean verifyParameters() throws MojoFailureException, MojoExecutionException {
setProperties(new SurefireProperties(getProperties()));
if (isSkipExecution()) {
getConsoleLogger().info("Tests are skipped.");
return false;
}

String jvmToUse = getJvm();
if (toolchain != null) {
Expand Down

0 comments on commit c006d8e

Please sign in to comment.