Skip to content

Allow using 'withKnownIssue' as a test or suite trait #1132

Open
@AnthonyLatsis

Description

@AnthonyLatsis

Motivation

withKnownIssue provides granularity, but does not offer a great user experience when the intent is to express an expected failure of a test function because it requires you to modify the entire body, resulting in (much) larger changes/diffs than necessary.

Proposed solution

E.g. a new defaulted parameter for the Test macros. Could simply be a boolean; a more prudent design, I believe, would be to have it accept an enum along the lines of

enum ArgumentsWithKnownIssue<C: Collection> {
  case none, all
  case arguments(C)
}

Alternatives considered

No response

Additional information

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestissue-handlingRelated to Issue handling within the testing librarypublic-apiAffects public APItraitsIssues and PRs related to the trait subsystem or built-in traitstriagedThis issue has undergone initial triage

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions