Derby
  1. Derby
  2. DERBY-4089

It should be possible to run unit tests right after "ant all"

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 10.4.2.0
    • Fix Version/s: 10.9.1.0
    • Component/s: Build tools
    • Labels:
      None

      Description

      Right now, the property "derby.junit.classpath" is empty by default. There should be an ant target which sets the correct classpath to run all tests after an initial checkout and "ant all".

      The current situation is very confusing to beginners and people who try to build Derby for the first time. For example, when running the tests, I got this exception:

      java.lang.ClassNotFoundException: org.apache.derbyTesting.junit.EnvTest

      but that class was there, the file was there, everything was correct. Googling for the error didn't turn anything up, either. It took me a while to believe that build.xml just wouldn't try to setup a classpath for the tests.

      1. derby-4089-1a-set_classpath.diff
        9 kB
        Kristian Waagan
      2. derby-4089-1b-set_classpath.diff
        9 kB
        Kristian Waagan

        Issue Links

          Activity

            People

            • Assignee:
              Kristian Waagan
              Reporter:
              Aaron Digulla
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development