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 aaf4a68 commit 56195aa
Show file tree
Hide file tree
Showing 2 changed files with 2,008 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/test/java/se/bjurr/violations/lib/Flake8Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@

import java.util.ArrayList;
import java.util.Set;

import org.junit.Test;

import se.bjurr.violations.lib.model.Violation;

public class Flake8Test {
Expand Down Expand Up @@ -177,4 +179,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 56195aa

Please sign in to comment.