opengeospatial / ets-cat30

OGC Catalogue 3.0 Conformance Test Suite
Other
0 stars 6 forks source link

write outputs to user specified directory #12

Closed tomkralidis closed 9 years ago

tomkralidis commented 9 years ago

Running output via command line via java -jar ets-cat30-${version}-aio.jar my-csw.xml always writes out test outputs to a directory under $HOME/testng/. Can this be modified via command line argument to write to a user specified directory?

rjmartell commented 9 years ago

That would be straightforward. You may have noticed that the main method currently just uses the default location (user.home), but it could also be gleaned from a command line option.

e.g. ets-cat30-${version}-aio.jar -o $TMPDIR my-csw.xml

tomkralidis commented 9 years ago

No such luck against master:

$ java -jar ets-cat30/target/ets-cat30-0.9-SNAPSHOT-aio.jar -o foo/ csw3-run-props.xml 
Exception in thread "main" java.lang.IllegalArgumentException: Test run arguments not found at -o
    at org.opengis.cite.cat30.TestNGController.main(TestNGController.java:56)

Trying like this:

$ java -jar ets-cat30/target/ets-cat30-0.9-SNAPSHOT-aio.jar csw3-run-props.xml -o foo/

Runs as expected but -o is ignored.

rjmartell commented 9 years ago

No changes committed yet. My example was intended as a proposal. If that option is fine I'll add it this week.

tomkralidis commented 9 years ago

:+1:

rjmartell commented 9 years ago

ets-cat30-${version}-aio.jar [-o|--outputDir $TMPDIR] [test-run-props.xml]

tomkralidis commented 9 years ago

works, thanks @rjmartell!