Skip to content

RECORD_FAILED doesn't work with @ClassRule #320

@iirekm

Description

@iirekm

I want to use one container for all tests in class (starting and stopping takes some time). It seems that when I use @ClassRule instead of @Rule, RECORD_FAILED doesn't record anything, so I need to use RECORD_ALL. It seems to be a JUnit issue, for @ClassRules it seems to not throw any exception even if test fails.

Maybe some other way of creating one container per test class would be needed? Or at least some warning in JavaDocs maybe?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions