Skip to content

Commit

Permalink
fix(deps): update dependency org.apache.maven.surefire:maven-surefire…
Browse files Browse the repository at this point in the history
…-common to v3.0.0-m7 (#213)
  • Loading branch information
andre15silva authored Nov 29, 2022
1 parent 447eb10 commit 9037a2a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>maven-surefire-common</artifactId>
<version>3.0.0-M5</version>
<version>3.0.0-M7</version>
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,13 +196,13 @@ private boolean classToInclude(String className) {

// True if it is present in the available binaries
for (String dir : config.getBinJavaDir()) {
DirectoryScanner directoryScanner = new DirectoryScanner(new File(dir), TestListResolver.getWildcard());
DirectoryScanner directoryScanner = new DirectoryScanner(new File(dir), new TestListResolver("*.class"));
if (directoryScanner.scan().getClasses().contains(className)) {
return true;
}
}
for (String dir : config.getBinTestDir()) {
DirectoryScanner directoryScanner = new DirectoryScanner(new File(dir), TestListResolver.getWildcard());
DirectoryScanner directoryScanner = new DirectoryScanner(new File(dir), new TestListResolver("*.class"));
if (directoryScanner.scan().getClasses().contains(className)) {
return true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@ protected String computeClasspath() {
protected String computeJacocoIncludes() {
StringBuilder includes = new StringBuilder();
for (String directory : config.getBinJavaDir()) {
DirectoryScanner directoryScanner = new DirectoryScanner(new File(directory), TestListResolver.getWildcard());
DirectoryScanner directoryScanner = new DirectoryScanner(new File(directory), new TestListResolver("*.class"));
includes.append(":").append(directoryScanner.scan().getClasses().stream().reduce((x, y) -> x + ":" + y).orElse(""));
}
if (config.isCoverTests()) {
for (String directory : config.getBinTestDir()) {
DirectoryScanner directoryScanner = new DirectoryScanner(new File(directory), TestListResolver.getWildcard());
DirectoryScanner directoryScanner = new DirectoryScanner(new File(directory), new TestListResolver("*.class"));
includes.append(":").append(directoryScanner.scan().getClasses().stream().reduce((x, y) -> x + ":" + y).orElse(""));
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public String[] getClasses() {
}

static List<String> getClassesLoc(File testSrcFolder) {
DirectoryScanner directoryScanner = new DirectoryScanner(testSrcFolder, TestListResolver.getWildcard());
DirectoryScanner directoryScanner = new DirectoryScanner(testSrcFolder, new TestListResolver("*.class"));
return directoryScanner.scan().getClasses();
}
}

0 comments on commit 9037a2a

Please sign in to comment.