Skip to content
This repository was archived by the owner on Oct 1, 2020. It is now read-only.
This repository was archived by the owner on Oct 1, 2020. It is now read-only.

Coverage failure with expected exceptions #133

@Martin-Spamer

Description

@Martin-Spamer

Unit Test with an expected exception are shown as not covered when running them through the debugger or adding logging proved the code is actually covered.

Steps to reproduce

import static org.junit.Assert.fail;
import org.junit.Test;
public class CoverageFailure {
    @Test(expected = AssertionError.class)
    public void test() {
        fail("Coverage failure");
    }
}

EclEmma version:
EclEmma 2.3.1.201405111647
Eclipse version:
Eclipse Java EE IDE for Web Developers.
Version: Mars.1 Release (4.5.1)
Build id: 20150924-1200

Expected behaviour

All Code should be reported as covered by test.

Actual behaviour

The example could is reported as not-covered by test.

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