Skip to content

Commit

Permalink
feat(objectionary#946): use parallelism in integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
volodya-lombrozo committed Jan 13, 2025
1 parent 91afcc8 commit cc32282
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ SOFTWARE.
<pomExcludes>
<exclude>spring-fat/pom.xml</exclude>
</pomExcludes>
<parallelThreads>10</parallelThreads>
</configuration>
</plugin>
<plugin>
Expand Down Expand Up @@ -528,6 +529,7 @@ SOFTWARE.
All integration tests are enabled in the 'long' profile.
-->
<pomExcludes/>
<parallelThreads>10</parallelThreads>
</configuration>
</plugin>
</plugins>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
import java.util.HashSet;
import java.util.List;
import java.util.Optional;
import java.util.Set;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import lombok.EqualsAndHashCode;
Expand Down Expand Up @@ -158,17 +157,18 @@ public boolean hasAttribute(final String name, final String value) {

@Override
public void validate() {
final Set<String> skip = new HashSet<>(Arrays.asList(
final Collection<String> ignore = new HashSet<>(Arrays.asList(
"mandatory-home",
"name-outside-of-abstract-object",
"mandatory-version",
"empty-object",
"incorrect-package"
"incorrect-package",
"object-does-not-match-filename"
));
final Collection<Defect> defects = new Program(new StrictXmir(this.doc))
.defects()
.stream()
.filter(defect -> !skip.contains(defect.rule()))
.filter(defect -> !ignore.contains(defect.rule()))
.collect(Collectors.toList());
if (!defects.isEmpty()) {
throw new IllegalStateException(
Expand Down

0 comments on commit cc32282

Please sign in to comment.