Is there any mechanism in JUnit 5 to run all assert in test even if assert in the middle failed? For example:
@Test
public void unitForTest_SomeScenario_ShouldReturn() {
//Arrange
var myObj = myServ.getMyObj();
//Act & Assert
assertThat(myObj).isNotNull();
assertThat(myObj.getName()).isEqualTo("Steve"); //failed assert
assertThat(myObj.getLastName()).isEqualTo("Gates");
}
My intention is to run all asserts and track that failed is only second, but not the third and first.