Justin Deoliveira wrote: >As to actually running the tests there are some docs here at the end of >the page. > >http://docs.codehaus.org/display/GEOT/2.5.7+Testing+with+Maven > >As long as your module extends the root pom and doesn't override any of >the surefire configuration it should just work for you. > > It seems the only thing we're missing is our fixtures. At the moment these are in svn, but we should kick them out into something like the maven settings.xml file. Try this on for size:
We put all our little fixtures into ~/.geotools/fixtures.xml. All online tests should extend a class which assumes this path and parses its contents out, or overrides it with an environment variable. Each test which needs a fixture asks for it, and if not defined simply skips. This would allow our fixtures to be run in both maven and any ide, and be flexible enough for the build box to be able to point at different fixture files. Another thought: do a pattern match on the fixture name and run the tests for each case (great for testing multiple postgres versions). fixtures.xml could be as simple as: <fixture name="postgis-demobc"> <element key="host" value="www.refractions.net" /> <element key="db" value="demo-bc" /> <element key="username" value="postgres" /> ... </fixture> Cheers, Cory. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
