Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Suban05 committed Feb 24, 2025
1 parent 7287278 commit 681207c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
2 changes: 0 additions & 2 deletions .codacy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
# package name contains capital letter and such names are conventional.
---
exclude_paths:
- "src/test/groovy/*.groovy"
- "eo-runtime/src/test/java/integration/PhiUnphiIT.java"
- "eo-maven-plugin/src/test/java/org/eolang/maven/AssembleMojoIT.java"
- "eo-maven-plugin/src/test/java/org/eolang/maven/LintMojoTest.java"
- "eo-maven-plugin/src/test/java/org/eolang/maven/LintMojoIT.java"
12 changes: 4 additions & 8 deletions eo-maven-plugin/src/test/java/org/eolang/maven/LintMojoIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,15 @@
@ExtendWith({WeAreOnline.class, MktmpResolver.class, MayBeSlow.class, RandomProgramResolver.class})
final class LintMojoIT {

/**
* The path to the EO file.
*/
private static final String EO = "src/main/eo/foo.eo";

@Test
void lintsAgainAfterModification(@Mktmp final Path temp, @RandomProgram final String program)
throws Exception {
final String source = "src/main/eo/foo.eo";
final String xmir = String.format("target/eo/%s/foo.xmir", LintMojo.DIR);
new Farea(temp).together(
f -> {
f.clean();
f.files().file(LintMojoIT.EO).write(program.getBytes());
f.files().file(source).write(program.getBytes());
LintMojoIT.appendItself(f)
.configuration()
.set("failOnWarning", "false");
Expand All @@ -49,7 +45,7 @@ void lintsAgainAfterModification(@Mktmp final Path temp, @RandomProgram final St
.path()
.toFile()
.lastModified();
f.files().file(LintMojoIT.EO).write(program.getBytes());
f.files().file(source).write(program.getBytes());
f.exec("process-classes");
MatcherAssert.assertThat(
"the .xmir file is re-generated",
Expand All @@ -66,7 +62,7 @@ void printsLintsUrlWithVersion(@Mktmp final Path temp, @RandomProgram final Stri
new Farea(temp).together(
f -> {
f.clean();
f.files().file(LintMojoIT.EO).write(program.getBytes());
f.files().file("src/main/eo/foo.eo").write(program.getBytes());
LintMojoIT.appendItself(f)
.configuration()
.set("failOnWarning", "false");
Expand Down

0 comments on commit 681207c

Please sign in to comment.