On 08/10/15 06:11, Walter Stovall wrote: > Is there an appropriate way to run the test classes in the geotools eclipse > workspace?
I do not currently have or support Oracle, but I have run GeoTools Oracle tests (gt-jdbc-oracle) in the past. I recommend first getting the Oracle tests running without your changes. In Eclipse to run all unit tests in a module, package, or class, right-click / Run As / JUnit Test. If you run oracle tests without configuring your oracle test fixture, the online test infrastructure will silently disable every test and give you a false pass. It is designed to disable tests when servers are not available. A working test should take minutes not seconds. The oracle fixture is configured with an oracle.properties file in a folder called ".geotools" in your home directory. On Linux this is ~/.geotools/oracle.properties and, although Windows will not let you make a folder starting with ".", the test infrastructure will make it for you when first run and then you can create oracle.properties inside it. oracle.properties should contain the following text (with your values substituted for UPPER_CASE_THINGS): dbtype = Oracle driver = oracle.jdbc.driver.OracleDriver url = jdbc:oracle:thin:@ORACLE_FULLY_QUALIFIED_HOST_NAME:1521:ORACLE_SID host = ORACLE_FULLY_QUALIFIED_HOST_NAME port = 1521 database = ORACLE_DATABASE user = ORACLE_USER passwd = ORACLE_PASSWORD password = ORACLE_PASSWORD There is a bit of duplication as some different keys are used in different places. Sorry about that. The oracle user will need permissions to create tables, views, and synonyms, perhaps more. I am not an Oracle DBA. See: https://www.seegrid.csiro.au/wiki/Infosrvices/JenkinsGeoserverMasterTechnicalNotes I recommend running tests in Maven first at the command line with in the jdbc-oracle folder: mvn -Ponline test It is mandatory to use -Ponline or Maven will skip every *OnlineTest. Once your tests are running in Maven, you should be able to run them in Eclipse as described above. Some temporal tests now fail in Eclipse after some recent work handling time zones. They pass in Maven. You may need to ignore these. Once you reach this point, you can start adding your SDO tests, but this is beyond my knowledge. Have a look in OracleTestSetup and the SDO*Test classes. > Should I create a pull request with my proposed change? I understand that > leads to an opportunity to discuss the fix. Maybe that's a better forum than > burdening this list? Process questions are always welcome here, as are technical discussions. Pull requests facilitate comments on individual lines and discussion of complete code that is ready to be merged. Fine detail can be easier in a PR. Feel free to use each forum as you see fit. Kind regards, -- Ben Caradoc-Davies <[email protected]> Director Transient Software Limited <http://transient.nz/> New Zealand ------------------------------------------------------------------------------ _______________________________________________ GeoTools-Devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
