Uploaded image for project: 'Clover'
  1. Clover
  2. CLOV-1063

Clover should support the @Rule method of expecting an exception

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Won't Fix
    • won't fix
    • None
    • None
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Clover doesn't support the @Rule method of expecting an exception.

       

      Workaround #1

      For Clover to understand that the test is passing you would need to add an 'expected' attribute to the @Test annotation:
      http://junit.sourceforge.net/javadoc/org/junit/Test.html#expected()

       

      Workaround #2

      Configure Clover report task to use JUnit's XML files as a source of test results, instead of relying on Clover's internal tracking.

              mparfianowicz Marek Parfianowicz
              asridhar AjayA
              Votes:
              3 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: