Skip to content

Minor errors in custom runners #62

@aionick

Description

@aionick

Currently, if you write a test with an annotation like @Test(expected = NullPointerException.class) your test will correctly succeed if a NPE is thrown, however, it will incorrectly succeed if no NPE is thrown.

It might also be worth having someone verify that the @BeforeClass @Before, @Test, @After @AfterClass logic is correct when exceptions are thrown in one or more of these stages. This is all being handled correctly when nothing goes wrong, but it might not be when something does go wrong.

Note: all of this is very low priority considering that no one is writing any tests expecting exceptions (that would be very questionable anyway since we are doing full-scale integration tests here...) and no tests are making use of before's and after's either.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions