Skip to content

Allow @RepeatedTest to stop after a certain number of failures #2925

Closed
@YuanPeiqi

Description

@YuanPeiqi

This idea is similar to issue #2119

I think the function mentioned in issue #2119 could be extended to allow users to define tolerable number of failures, by introduce something like tolerableFailureNumber attribute (which is an integer)

@RepeatedTest(10, tolerableFailureNumber = 2)	// this test will terminate after five failures

This can not only fulfill the requirements in issue #2119 by setting tolerableFailureNumber to 1, but also provide richer functionality.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions