Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-391

Before/After Methods are not executed on tests

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Done
    • Affects Version/s: 1.0.0.Alpha5
    • Fix Version/s: 1.0.0.CR2
    • Component/s: Base Implementation
    • Labels:
      None
    • Environment:
      Arquillian/OpenEJB combination from 1.0.0-SNAPSHOT

      Description

      After today's build of SNAPSHOT, the Before and After methods of tests are no longer execcuted.

        Gliffy Diagrams

          Issue Links

            Activity

            Hide
            dallen6 David Allen added a comment -

            I apologize for re-opening this issue many times in a day, but it's been difficult tracking down what the problem is.

            The actual problem is when an assert fails in a test, the After events never get fired. This is incorrect; regardless of the outcome of a test, all after test events need to be fired and processed.

            Show
            dallen6 David Allen added a comment - I apologize for re-opening this issue many times in a day, but it's been difficult tracking down what the problem is. The actual problem is when an assert fails in a test, the After events never get fired. This is incorrect; regardless of the outcome of a test, all after test events need to be fired and processed.
            Hide
            dallen6 David Allen added a comment -

            The above test case always asserts that Before and After were not called. I'm not really sure what the test is testing, but it definitely excludes all the before/after methods. Is there a way to change this test so that it does include the before/after methods?

            Show
            dallen6 David Allen added a comment - The above test case always asserts that Before and After were not called. I'm not really sure what the test is testing, but it definitely excludes all the before/after methods. Is there a way to change this test so that it does include the before/after methods?
            Hide
            aslak Aslak Knutsen added a comment -

            right, before/after is not executed because your executing as a client.

            Show
            aslak Aslak Knutsen added a comment - right, before/after is not executed because your executing as a client.
            Hide
            dallen6 David Allen added a comment -

            This problem with After methods being skipped is limited to tests which fail, not tests which are in error (throw some arbitrary exception).

            Show
            dallen6 David Allen added a comment - This problem with After methods being skipped is limited to tests which fail, not tests which are in error (throw some arbitrary exception).
            Hide
            aslak Aslak Knutsen added a comment -

            pushed upstream, standalone embedded containers updated to not add the Before/After Observers

            Show
            aslak Aslak Knutsen added a comment - pushed upstream, standalone embedded containers updated to not add the Before/After Observers

              People

              • Assignee:
                aslak Aslak Knutsen
                Reporter:
                dallen6 David Allen
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Development