You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2019/05/31 16:40:39 UTC

[Bug 63479] New: junitlauncher - does not detect failure in @BeforeAll

https://bz.apache.org/bugzilla/show_bug.cgi?id=63479

            Bug ID: 63479
           Summary: junitlauncher - does not detect failure in @BeforeAll
           Product: Ant
           Version: 1.10.6
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
          Assignee: notifications@ant.apache.org
          Reporter: pvarga@opentext.com
  Target Milestone: ---

If an exception is thrown in a @Test (or if a @Test fails), junitlauncher
correctly recognizes the failure and acts on failureProperty/haltOnFailure as
expected.
However, if an exception is failure occurs in a method with @BeforeAll instead
of @Test, the failureProperty/haltOnFailure aren't triggered. Still, the
failure is detected and logged by the legacy-plain and legacy-xml listeners.

This suggests the problem is with Ant and not Junit.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 63479] junitlauncher - does not detect failure in @BeforeAll

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63479

J.M. (Martijn) Kruithof <jk...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED
   Target Milestone|---                         |1.10.7

--- Comment #1 from J.M. (Martijn) Kruithof <jk...@apache.org> ---
Should be fixed in
https://github.com/apache/ant/commit/35d3b9ab11a264912daefdb40837fd0a20b64c2e

-- 
You are receiving this mail because:
You are the assignee for the bug.