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

Skip to content
Merged
Show file tree
Hide file tree
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
Prev Previous commit
Next Next commit
Make sure tags are passed to TestRunner
  • Loading branch information
pesse committed Jun 27, 2019
commit 73fbaa619481d1a544499fc6b61bcadc28a10cc9
3 changes: 2 additions & 1 deletion src/main/java/org/utplsql/cli/RunAction.java
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ TestRunner newTestRunner(List<Reporter> reporterList) {
.includeObjects(Arrays.asList(config.getIncludePackages()))
.excludeObjects(Arrays.asList(config.getExcludePackages()))
.randomTestOrder(config.isRandomTestOrder())
.randomTestOrderSeed(config.getRandomTestOrderSeed());
.randomTestOrderSeed(config.getRandomTestOrderSeed())
.addTags(Arrays.asList(config.getTags()));
}

private void outputMainInformation() {
Expand Down
10 changes: 10 additions & 0 deletions src/test/java/org/utplsql/cli/RunCommandArgumentsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,14 @@ void multiplePaths() {
assertThat( testRunner.getOptions().pathList, contains("app.test_betwnstr", "app.test_award_bonus") );

}

@Test
void provideTags() {
IRunCommand runCmd = TestHelper.createRunCommand(TestHelper.getConnectionString(),
"--tags=tag1,tag.2"
);

TestRunner testRunner = runCmd.newTestRunner(new ArrayList<>());
assertThat( testRunner.getOptions().tags, contains("tag1", "tag.2") );
}
}