Skip to content

Commit

Permalink
OF-2611: S2S unit test should print configuration
Browse files Browse the repository at this point in the history
Not all test-runners easily identify the parameters that are used to run each test iteration. Those that do not, typically show a number. By outputting the numbered arguments, they can be cross-referenced with any failed test case.
  • Loading branch information
guusdk committed Jul 19, 2023
1 parent 1756d06 commit b695d21
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,13 @@ private static Iterable<Arguments> arguments() {
}
}

// Not all test-runners easily identify the parameters that are used to run each test iteration. Those that do
// not, typically show a number. By outputting the numbered arguments, they can be cross-referenced with any
// failed test case.
int i = 1;
for (Arguments arguments : result) {
System.out.println("Test [" + i++ + "]: " + arguments.get()[0] + ", " + arguments.get()[1]);
}
return result;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,13 @@ private static Iterable<Arguments> arguments() {
}
}

// Not all test-runners easily identify the parameters that are used to run each test iteration. Those that do
// not, typically show a number. By outputting the numbered arguments, they can be cross-referenced with any
// failed test case.
int i = 1;
for (Arguments arguments : result) {
System.out.println("Test [" + i++ + "]: " + arguments.get()[0] + ", " + arguments.get()[1]);
}
return result;
}
}

0 comments on commit b695d21

Please sign in to comment.