junit5
junit5 copied to clipboard
FileSource ArgumentsProvider
Problems with CsvFileSource:
- Long arguments either have to be on the same line separated by
delimiter, or indented manually usingquoteCharacter. Neither option is very legible. - No way to set
delimiteras OS-specific newline. Even if delimiter is hard coded as\n, theCsvFileArgumentsProviderfails to parse the file such thatArguments.get.lengthmatches the number of formal parameters in the test method.
Deliverables
- [ ] A
FileSourcethat delimits arguments by any newline character/string, same as BufferedReader.readLine(). I've implemented one for a personal project, and can make a PR. - [ ] Alternatively, make
CsvFileSource.delimiterreadnlines intoArgumentseach time, wherenis the the number of formal parameters in the test method.