On 1-May-08, at 11:58 AM, Chris Harris wrote:
Could someone with junit skills tell me the best way to run the tests
not from the whole Solr test suite but rather from a single test file,
e.g. from BasicFunctionalityTest.java?
I'm currently trying
[running from c:\solrrichstuff\trunk\src\test\test-files]
java.exe -classpath
".;../../../lib/junit-4.3.jar;../../../build/tests;../../../build/
core;../../../build/common"
org.junit.runner.JUnitCore org.apache.solr.BasicFunctionalityTest
but that A) seems longer than necessary and B) still doesn't get the
classpath right, as the class loader can't find
org.apache.solr.update.SolrIndexConfig.
I have run ant compileTests, if you're curious about that.
$ ant test -Dtestcase=BasicFunctionalityTest
regards,
-Mike