You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Robert Muir <rc...@gmail.com> on 2010/12/31 21:17:54 UTC

heads up: running solr tests from IDE

I have been working on SOLR-2299 because there is basically no way to
run the solr tests from an eclipse IDE without hacks or changing your
CWD each time.

Anyway, the ant build system now works instead by putting test
resources into the classpath (like lucene's). So if you are using an
IDE or some custom python script you wrote or something else, you
might have to change your configuration instead of changing your CWD
to src/test/test-files or whatever it is for the various contribs. You
can set the CWD to whatever you want (the default, or ideally
something not located under source control like your build directory).

For reference in the eclipse configuration this consists of adding the
following to your classpath (source folders):
solr/src/test/test-files,
solr/contrib/analysis-extras/src/test/test-files,
solr/contrib/clustering/src/test/resources,
solr/contrib/dataimporthandler/src/test/resources,
solr/contrib/dataimporthandler/src/extras/test/resources,
solr/contrib/extraction/src/test/resources

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org