OpenJPA
  1. OpenJPA
  2. OPENJPA-123

Test framework should allow tests that are expected to fail to be checked in

    Details

      Description

      Often, tests are developed before solutions are implemented. It should be possible for us to check in such tests to svn without causing the build to fail.

        Issue Links

          Activity

          Hide
          Pinaki Poddar added a comment -

          We now have multiple mechanisms to suppress a test failure.

          Show
          Pinaki Poddar added a comment - We now have multiple mechanisms to suppress a test failure.
          Hide
          Patrick Linskey added a comment -

          I think that I prefer moving to TestNG; I like the idea of keeping the information about whether or not the test should run colocated with the test itself, rather than separated out into the pom.

          Show
          Patrick Linskey added a comment - I think that I prefer moving to TestNG; I like the idea of keeping the information about whether or not the test should run colocated with the test itself, rather than separated out into the pom.
          Hide
          Dain Sundstrom added a comment -

          You can list excluded tests in the maven pom. If you are using TestNG, there is a way to configure that in the pom also. See the surefire plugin documentation here:

          http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html

          Show
          Dain Sundstrom added a comment - You can list excluded tests in the maven pom. If you are using TestNG, there is a way to configure that in the pom also. See the surefire plugin documentation here: http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html
          Hide
          Marc Prud'hommeaux added a comment -

          I believe the Maven test plugin ("surefire") supports both JUnit and TestNG at the same time. If so, then we could use the TestNG concept of "groups" (http://testng.org/doc/documentation-main.html#test-groups) to be able to specify groups for bugs that we expect to fail.

          Show
          Marc Prud'hommeaux added a comment - I believe the Maven test plugin ("surefire") supports both JUnit and TestNG at the same time. If so, then we could use the TestNG concept of "groups" ( http://testng.org/doc/documentation-main.html#test-groups ) to be able to specify groups for bugs that we expect to fail.
          Hide
          Patrick Linskey added a comment -

          OPENJPA-122 is an example of a test case that should have been commitable before the behavior was implemented.

          Show
          Patrick Linskey added a comment - OPENJPA-122 is an example of a test case that should have been commitable before the behavior was implemented.

            People

            • Assignee:
              Unassigned
              Reporter:
              Patrick Linskey
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development