Skip to content

Commit

Permalink
Merge pull request #11 from Priytam/bug10DuplicateColumns
Browse files Browse the repository at this point in the history
Closes #10 , Duplicated columns in tag is used on mulitple tests
  • Loading branch information
Niyatiluthra authored Jun 2, 2020
2 parents 6806005 + 0081412 commit 366f386
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public void invalidUser() {
}

@Test
@Tags(value = {"ABC-10","ABD-20"})
public void adData() {
User user = getServer().getUser(2);
Check.assertNotNull(user.getAd(), "Ad was null");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ private void printTestDetail(ExecutionResult result) {
.flatMap(jobResult -> jobResult.getCustomTestData().stream())
.filter(TestDataReporterItem::shouldBeReported)
.map(item -> StringUtils.capitalize(item.getKey()))
.distinct()
.toArray(String[]::new);
String[] headerColumns = Stream.of(DETAIL_COLUMN_NAMES, dynamicColumns).flatMap(Arrays::stream).toArray(String[]::new);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ private String buildDetailReport(List<TestJobResult> jobResults) {
.flatMap(jobResult -> jobResult.getCustomTestData().stream())
.filter(TestDataReporterItem::shouldBeReported)
.map(item -> StringUtils.capitalize(item.getKey()))
.distinct()
.toArray(String[]::new);
String[] headerColumns = Stream.of(DETAIL_COLUMN_NAMES, dynamicColumns).flatMap(Arrays::stream).toArray(String[]::new);

Expand Down

0 comments on commit 366f386

Please sign in to comment.