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 8676714 commit caf37e5
Showing 1 changed file with 5 additions and 4 deletions.
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 caf37e5

Please sign in to comment.