Skip to content

Make quote character in @CsvSource and @CsvFileSource configurable #2735

Closed
@sbrannen

Description

@sbrannen

Overview

In order to treat text blocks as files in @CsvSource (see #2734), we should allow users to change the quote character to " when using text blocks.

This will of course allow one to change the quote character to anything other than ' or ", even when using the value attribute in @CsvSource, but it is assumed the primary use case is using double quotes in text blocks.

For consistency in supported features, we should do the same for @CsvFileSource.

Related Issues

Deliverables

  • Introduce new char quoteCharacter() default '\''; attribute in @CsvSource.
  • Introduce new char quoteCharacter() default '"'; attribute in @CsvFileSource.
  • Document in the Release Notes.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions