Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
To be honest - that was a pretty dumb way of loading a file...
  • Loading branch information
pesse committed May 17, 2018
commit 07b7e751caf008d8c2069a21cdcb1659831f6cc1
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,9 @@ public void run_CodeCoverageWithIncludeAndExclude() throws Exception {
RunCommand runCmd = RunCommandTestHelper.createRunCommand(RunCommandTestHelper.getConnectionString(),
"-f=ut_coverage_html_reporter", "-o=" + coveragePath, "-s", "-exclude=app.award_bonus,app.betwnstr");


int result = runCmd.run();

String content = new Scanner(coveragePath).useDelimiter("\\Z").next();
String content = new String(Files.readAllBytes(coveragePath));

assertEquals(true, hasCoverageListed(content, "app.remove_rooms_by_name"));
assertEquals(false, hasCoverageListed(content, "app.award_bonus"));
Expand Down