Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "EclipseLink/Development/Testing/SDO"
< EclipseLink | Development | Testing
(→Building & Running the SDO Junit tests) |
(→Building & Running the SDO Junit tests) |
||
Line 14: | Line 14: | ||
**tools.lib=<JAVA_HOME/lib/tools.jar | **tools.lib=<JAVA_HOME/lib/tools.jar | ||
− | + | *'''Configuration options''' | |
− | + | **customContext = true (run test using an thread-safe instantiable instance of SDOHelperContext) - default | |
− | + | **customContext = false (run test using static HelperContext Singleton) | |
− | + | ||
* '''Building & Running within an Eclipse Workspace via subclipse checkout | * '''Building & Running within an Eclipse Workspace via subclipse checkout | ||
Line 25: | Line 24: | ||
# Navigate to the <workspace>/eclipselink.sdo.test directory | # Navigate to the <workspace>/eclipselink.sdo.test directory | ||
# Run the sdo.test/build.xml by typing "ant". This will compile in order eclipselink.core, eclipselink.sdo and eclipselink.sdo.test. | # Run the sdo.test/build.xml by typing "ant". This will compile in order eclipselink.core, eclipselink.sdo and eclipselink.sdo.test. | ||
− | # View results in the reports subdirectory | + | # View results in the reports subdirectory |
* '''Building & Running within a Subversion checkout | * '''Building & Running within a Subversion checkout | ||
Line 33: | Line 32: | ||
# Navigate to the eclipselink.sdo.test directory | # Navigate to the eclipselink.sdo.test directory | ||
# Run sdo.test/build.xml by typing "ant" | # Run sdo.test/build.xml by typing "ant" | ||
− | # View results in the reports subdirectory | + | # View results in the reports subdirectory under |
+ | |||
+ | * '''Interpreting Test Results | ||
+ | ** See the test results page at [] | ||
+ | ** Depending on the value of the customContext variable look under the true|false subdirectory in ''junit-noframes.html'' |
Revision as of 11:58, 24 October 2007
Summary
This page is intended to outline the setup and execution steps required to successfully run the SDO JUnit tests - It is currently undergoing the first draft as of 20071019.
Building & Running the SDO Junit tests
Prerequisites:
- Eclipse installed with the subclipse pluggin or TortoiseSVN for out of eclipse checkouts
- Required projects eclipselink.core and eclipselink.lib checked out into workspace/view
- eclipselink.sdo, eclipselink.sdo.lib and eclipselink.sdo.test checked out into workspace/view
- Edit build.properties either at this project level or globally in your user directory..
- Windows: C:\Documents and Settings\<user-dir> Linux:
- javaee.lib=<jar_location>/javaee.jar
- junit.lib=<JUNIT_HOME>/junit.jar
- tools.lib=<JAVA_HOME/lib/tools.jar
- Configuration options
- customContext = true (run test using an thread-safe instantiable instance of SDOHelperContext) - default
- customContext = false (run test using static HelperContext Singleton)
- Building & Running within an Eclipse Workspace via subclipse checkout
The SDO test suite is written using JUnit. It consists of a set of jars that contain various tests and resources. The SDO tests are contained in the eclipselink.sdo.test project
- Navigate to the <workspace>/eclipselink.sdo.test directory
- Run the sdo.test/build.xml by typing "ant". This will compile in order eclipselink.core, eclipselink.sdo and eclipselink.sdo.test.
- View results in the reports subdirectory
- Building & Running within a Subversion checkout
- Create your own view directory - for example "c:/myview/"
- Check out the SVN project for SDO into this directory
- Navigate to the eclipselink.sdo.test directory
- Run sdo.test/build.xml by typing "ant"
- View results in the reports subdirectory under
- Interpreting Test Results
- See the test results page at []
- Depending on the value of the customContext variable look under the true|false subdirectory in junit-noframes.html