« Return to Thread: Derby Testing

Re: Derby Testing

by Kristian Waagan-4 :: Rate this Message:

| View in Thread

Jazarine Jamal wrote:
> I've just fixed a source bug on derby but don't quite know how to test it..
> The wiki has been telling me that I need to write my own tests to test
> derby..
>  
> And do I have to run all the tests: Functional,performance etc..?
>  
> Please give me an insight into Derby Testing...

Hello Jazarine,

Derby has a set of regression tests in the code repository.
If you check out trunk, they are located under java/testing.

Most of the tests are based on JUnit, and you should be able to run them
any way you normally run JUnit tests. Each "test package" has a _Suite
class that runs the tests in that package, and there are also a number
of higher level suites in java/testing/org/apache/derbyTesting/suites.

Note that running all the tests takes a while (we're talking in the
range of hours).

You can find more information here:
http://wiki.apache.org/db-derby/DerbyTesting

To get you started, there are also some ant targets that will run the
tests for you, for instance 'junit-all' or 'junitreport'.


Hope this gets you started, please ask again for more information.


regards,
--
Kristian

 « Return to Thread: Derby Testing