Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-4089

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.4.2.0
    • 10.9.1.0
    • Build tools
    • 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.

      Attachments

        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

              kristwaa Kristian Waagan
              digulla Aaron Digulla
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: