mirror of
https://github.com/itplr-kosit/validator.git
synced 2026-05-25 16:55:39 +00:00
Avoid test output files on root level, instead move output to ./target
This commit is contained in:
parent
86d9ddfa2b
commit
9b22232722
1 changed files with 5 additions and 4 deletions
|
|
@ -150,8 +150,9 @@ public class CommandlineApplicationTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testValidNamingConfiguration() {
|
public void testValidNamingConfiguration() {
|
||||||
final String[] args = { "-s", Paths.get(Simple.SCENARIOS).toString(), "-r", Paths.get(Simple.REPOSITORY_URI).toString(),
|
final String[] args = { "-s", Paths.get(Simple.SCENARIOS).toString(), "-o", this.output.toString(), "-r",
|
||||||
Paths.get(Simple.SIMPLE_VALID).toString(), "--report-prefix", "somePrefix", "--report-postfix", "somePostfix" };
|
Paths.get(Simple.REPOSITORY_URI).toString(), Paths.get(Simple.SIMPLE_VALID).toString(), "--report-prefix", "somePrefix",
|
||||||
|
"--report-postfix", "somePostfix" };
|
||||||
CommandLineApplication.mainProgram(args);
|
CommandLineApplication.mainProgram(args);
|
||||||
assertThat(CommandLine.getErrorOutput()).contains(RESULT_OUTPUT);
|
assertThat(CommandLine.getErrorOutput()).contains(RESULT_OUTPUT);
|
||||||
assertThat(CommandLine.getErrorOutput()).contains("somePrefix-simple-somePostfix");
|
assertThat(CommandLine.getErrorOutput()).contains("somePrefix-simple-somePostfix");
|
||||||
|
|
@ -249,8 +250,8 @@ public class CommandlineApplicationTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testAndre() {
|
public void testAndre() {
|
||||||
final String[] args = { "-s", Paths.get(Simple.SCENARIOS).toString(), "-r", Paths.get(Simple.REPOSITORY_URI).toString(),
|
final String[] args = { "-s", Paths.get(Simple.SCENARIOS).toString(), "-o", this.output.toString(), "-r",
|
||||||
Paths.get(Simple.SIMPLE_VALID).toString(), "--report-prefix", "andre1" };
|
Paths.get(Simple.REPOSITORY_URI).toString(), Paths.get(Simple.SIMPLE_VALID).toString(), "--report-prefix", "andre1" };
|
||||||
CommandLineApplication.mainProgram(args);
|
CommandLineApplication.mainProgram(args);
|
||||||
assertThat(CommandLine.getErrorOutput()).contains(RESULT_OUTPUT);
|
assertThat(CommandLine.getErrorOutput()).contains(RESULT_OUTPUT);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue