Skip to content

Commit

Permalink
chore: adding test #184
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasbjerre committed Feb 25, 2024
1 parent 0874e95 commit 50dc3b6
Show file tree
Hide file tree
Showing 2 changed files with 2,006 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/test/java/se/bjurr/violations/lib/Flake8Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -177,4 +177,19 @@ public void testThatViolationsCanBeParsedFromFileContainingNoise() {
assertThat(violation0.getMessage()) //
.startsWith("HOME=/var/jenkins_home/workspace/");
}

@Test
public void testFailedReportFlake8() {
final String rootFolder = getRootFolder();

final Set<Violation> actual =
violationsApi() //
.withPattern(".*/flake8/failed_report_flake8\\.txt$") //
.inFolder(rootFolder) //
.findAll(FLAKE8) //
.violations();

assertThat(actual) //
.hasSize(0);
}
}
Loading

0 comments on commit 50dc3b6

Please sign in to comment.