JGiven icon indicating copy to clipboard operation
JGiven copied to clipboard

Provide the running test instance to DescriptionProviders

Open codecholeric opened this issue 8 years ago • 1 comments

When using @CaseDescription with a custom CaseDescriptionProvider, it would be nice if the description method of the CaseDescriptionProvider would receive an instance of the running test. This way it would be possible to provide a description depending on some state of the currently running test instance.

codecholeric avatar Mar 15 '16 19:03 codecholeric

The main challenge with this suggestion is that JGiven supports JUnit and TestNG. The question is now if there should be a unified solution or one solution for each framework.

janschaefer avatar Mar 16 '16 06:03 janschaefer