'JUnit5: Run test suite with disabled asserts

I want to have two test suites. One that runs all my test classes with active asserts and one that runs them with disabled asserts. I already tried to create a static{} block inside the test suite and call setClassAssertionStatus for each test class but this does not work. Maybe because the test classes are already initialized when the static block is executed. How else could I do this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source