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

When expected exception is thrown in test method, reporter should not report it

    XMLWordPrintable

Details

    Description

      When I have

      @Test(expected = SomeException.class)
      public void someTest() {
          throw new SomeException("this is test exception");
      }
      

      It should not appear in resulting report. Take JUnit @Rule into account as well.

      Take into consideration various test frameworks.

      https://github.com/arquillian/arquillian-recorder/blob/1.0.0.Alpha1/arquillian-recorder-reporter/arquillian-recorder-reporter-impl/src/main/java/org/arquillian/recorder/reporter/impl/ReporterLifecycleObserver.java#L164-L168

      Attachments

        Activity

          People

            smikloso Stefan Miklosovic (Inactive)
            smikloso Stefan Miklosovic (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: