Skip to content

Commit

Permalink
Improve the description of the test
Browse files Browse the repository at this point in the history
  • Loading branch information
ivonx committed Jul 4, 2019
1 parent 5e6393c commit 4514e4b
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/test/java/de/retest/recheck/cli/subcommands/CommitIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,14 @@ public class CommitIT {

@Test
public void commit_without_argument_should_return_the_usage_message() {
final String expectedMessage =
"Usage: commit [--all] <testReport>\n" + "Accept specified differences of given test report.\n"
+ " <testReport> Path to a test report file. If the test report is not in the\n"
+ " project directory, please specify the absolute path,\n"
+ " otherwise a relative path is sufficient.\n"
+ " --all Accept all differences from the given test report.\n";
assertThat( new CommandLine( new Commit() ).getUsageMessage() ).isEqualTo( expectedMessage );
final String expectedMessage = "Usage: commit [--all] [--exclude=<exclude>]... <testReport>\n"
+ "Accept specified differences of given test report.\n"
+ " <testReport> Path to a test report file. If the test report is not in\n"
+ " the project directory, please specify the absolute\n"
+ " path, otherwise a relative path is sufficient.\n"
+ " --all Accept all differences from the given test report.\n"
+ " --exclude=<exclude> Filter(s) to exclude changes from the diff.\n";
assertThat( new CommandLine( new Commit() ).getUsageMessage() ).isEqualToIgnoringNewLines( expectedMessage );
}

@Test
Expand Down

0 comments on commit 4514e4b

Please sign in to comment.