Skip to content

FileSource ArgumentsProvider #4496

Open
@asarkar

Description

@asarkar

Problems with CsvFileSource:

  1. Long arguments either have to be on the same line separated by delimiter, or indented manually using quoteCharacter. Neither option is very legible.
  2. No way to set delimiter as OS-specific newline. Even if delimiter is hard coded as \n, the CsvFileArgumentsProvider fails to parse the file such that Arguments.get.length matches the number of formal parameters in the test method.

Deliverables

  • A FileSource that 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.delimiter read n lines into Arguments each time, where n is the the number of formal parameters in the test method.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions