Uploaded image for project: 'WildFly Arquillian'
  1. WildFly Arquillian
  2. WFARQ-34

Exceptions thrown from ServerSetupTasks should make the test class fail at initialization and no tests should be executed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • None
    • None

      Currently the exception is caught in ServerSetupTaskHolder, only a message is logged and there is no change in the test flow.

      Steps to reproduce:

      cd wildfly-arquillian
      git add remote ppalaga git@github.com:ppalaga/wildfly-arquillian.git
      git checkout WFARQ-34 ppalaga/WFARQ-34
      mvn clean install -Dtest=ServerSetupFailureTestCase -DfailIfNoTests=false
      

      Expected: the test should fail with "SetupTask.setup() failed"
      Actual: the test fails with "A test method should not be invoked after a ServerSetupTask.setup() failure" which should not be called at all after the SetupTask failed.

              Unassigned Unassigned
              ppalaga Peter Palaga
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: