Here is the documentation link I am working through: - http://maven.apache.org/guides/introduction/introduction-to-profiles.html
From what I can see we have a couple uses for testing: - gt> mvn test- unit tests used by someone working on the library directly (ie. module/*) who wants a quick test to see if they have broken anything - gt/plugin/wfs> mvn test - "online" tests used by someone hacking postgis to see if they busted something - regression tests (like the datastore conformance tests idea, or what the wfs online tests do) I would like to figure out how to take these times down to the point that running unit tests is useful enough to use - ideas: - detect when testing a module by hand (ie like mvn eclipse:eclipse) does and enable more in depth testing when working on a module (right now people do this by using OnlineTest when working in a module) - isolate out the regression style testing (datastore conformance tests, parsing EPSG, testing WMS against a list of servers, testing WFS against a list of servers) as some java applications that can be run by cruise control nightly. To make this worthwhile we would need to set some time targets... so we can know when we are done. CURRENT TIMES Without tests: (mvn install -Dmaven.test.skip=true) module/ takes 30 seconds plugins/ takes 33 seconds ext/ takes 52 seconds With tests: (mvn install) module/ 81 seconds plugin/ 182 seconds ext:/ 163 seconds TARGET TIMES I think we could ask developers to accept: - around two minuets for a build that includes tests - and a budget of 3-5 seconds for unit testing each plug-in or ext Is this too much? We have 65 maven artifacts, a two minuet goal would give us less then two seconds per plug-in! For many of the plugins we cannot have *any* useful tests without a profile: - need to supply the right jar for db2 and oracle - need to specify a target server for anything with a server To test these plug-ins we need to provide: - a server on the web with a profile to make use of it during testing (ie the postgis, oracle instances we use currently) - sample profile making use of the test against localhost (if you have oracle, postgis, arcsde, installed on your box) It is too bad that these are the plugins that I need to figure out how to improve the quality of :-( Jody > I am launching into oracle QA here and am working on hooking up our code > w/ correctly. > > So far I have the following in order to place the driver into the repo: > >> C:> cd C:\oracle\product\10.2.0\jdbc\lib >> C:\oracle\product\10.2.0\jdbc\lib>mvn install:install-file >> -Dfile=ojdbc14.jar -DgroupId=com.oracle -DartifactId=ojdbc14 >> -Dversion=10.2.0 -Dpackaging=jar >> > The next step is to define a "profile" so we can switch between our > dummy spatial jar, and the real thing on the fly. I say this is the next > step because it is what Cory told me, not because I understand mvn > profiles yet ... > > If anyone can point me towards an example it would be cool. > Jody > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Geotools-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-devel > ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
