You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 1, 2020. It is now read-only.
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.