Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.3-BETA-1
    • Fix Version/s: 0.9
    • Component/s: None
    • Labels:
      None
    • Environment:
      all
    • Number of attachments :
      0

      Description

      I'd really like Griffon to upgrade to JUnit 4. Currently, with JUnit 3, it is not possible to use any of the JUnit tools that require a special test runner (the @RunWith annotation). These tools include: Spring-test, MultithreadedTC, and Spock. If JUnit 4 were the default test library then using these tools would be as easy as dropping the new unit tests in the existing test tree.

        Issue Links

          Activity

          Hide
          Andres Almiray added a comment -

          If you recall the conversation at the dev mailing list, the consensus was to wait until Grails 1.2 final was released, then decided what features would be ported, and what portions of buildtime would be synchronized.

          Show
          Andres Almiray added a comment - If you recall the conversation at the dev mailing list, the consensus was to wait until Grails 1.2 final was released, then decided what features would be ported, and what portions of buildtime would be synchronized.
          Hide
          Andres Almiray added a comment -

          Trunk has junit-4.8.1 as dependency now.

          Show
          Andres Almiray added a comment - Trunk has junit-4.8.1 as dependency now.
          Hide
          Hamlet D'Arcy added a comment -

          To support JUnit 4 @RunWIth, the script _GriffonTest needs to be converted from using the old junit.framework.TestSuite to using the new JUnit 4 suite. LIkewise, GriffonTestSuite will need to upgrade to JUnit 4 as well.

          A good test for this is to drop the Spock jar into your /lib dir and put a simple Spock test in your unit test directory. JUnit 4 should natively pick this test up and run it once this is fixed.

          Show
          Hamlet D'Arcy added a comment - To support JUnit 4 @RunWIth, the script _GriffonTest needs to be converted from using the old junit.framework.TestSuite to using the new JUnit 4 suite. LIkewise, GriffonTestSuite will need to upgrade to JUnit 4 as well. A good test for this is to drop the Spock jar into your /lib dir and put a simple Spock test in your unit test directory. JUnit 4 should natively pick this test up and run it once this is fixed.
          Hide
          Hamlet D'Arcy added a comment -

          see notes in comments

          Show
          Hamlet D'Arcy added a comment - see notes in comments
          Hide
          Andres Almiray added a comment -

          Should've marked this as fixed in 0.9 earlier

          Show
          Andres Almiray added a comment - Should've marked this as fixed in 0.9 earlier

            People

            • Assignee:
              Andres Almiray
              Reporter:
              Hamlet D'Arcy
            • Votes:
              3 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: