Skip to content

Commit

Permalink
feat(#251): Add simple logging messages
Browse files Browse the repository at this point in the history
  • Loading branch information
volodya-lombrozo committed Aug 1, 2023
1 parent 07f4869 commit 6a73487
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ public final class ValidateMojo extends AbstractMojo {
* Ignore generated tests.
* @checkstyle MemberNameCheck (7 lines)
*/
@Parameter(name = "ignoreGeneratedTests", defaultValue = "false")
@SuppressWarnings("PMD.LongVariable")
@Parameter(defaultValue = "false")
private boolean ignoreGeneratedTests;

/**
Expand Down Expand Up @@ -109,6 +109,7 @@ public final class ValidateMojo extends AbstractMojo {

@Override
public void execute() throws MojoFailureException {
this.getLog().info("Validating tests...");
final ProjectWithoutJUnitExtensions proj = new ProjectWithoutJUnitExtensions(
new Project.Combined(this.projects())
);
Expand All @@ -121,6 +122,9 @@ public void execute() throws MojoFailureException {
} else if (!complaints.isEmpty()) {
complaints.forEach(complaint -> this.getLog().warn(complaint.message()));
}
if (complaints.isEmpty()) {
this.getLog().info("All tests are valid");
}
}

/**
Expand Down

0 comments on commit 6a73487

Please sign in to comment.