lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shalin Shekhar Mangar <shalinman...@gmail.com>
Subject Re: Please help: Failing tests
Date Wed, 20 Jan 2010 08:46:25 GMT
On Wed, Jan 20, 2010 at 2:26 AM, Siv Anette Fjellkårstad <saf@steria.no>wrote:

>
> I'm tring to run the unit tests from Eclipse. Almost half the tests are
> failing, and I don't know what I'm doing wrong. This is what I've done:
>
> 1. Checked out the code outside Eclipse's workspace
> 2. File > New > Project > Java project.
> 3. Create project from existing source"
>
> 4. Five compiler errors. Fixed in this way:
> Properties > Java Build Path > order and Export
> Moved “JRE System Library” to the top
>
> 5. Run As > Run Configuration > Arguments > VM Arguments:
> -Dsolr.solr.home=<my solr dir>
>
> One of the error messages:
>
> org.apache.solr.common.SolrException: QueryElevationComponent missing
> config file: 'elevate.xml
> either: C:\data\solr\release-1.4.0\conf\elevate.xml or
> C:\DOCUME~1\saf\LOCALS~1\Temp\org.apache.solr.DisMaxRequestHandlerTest-1263934397062\elevate.xml
>
> When I add one conf-directory to the build path, another one is still
> missing. What have I done wrong?
>

You need to set the current working directory for the tests to
src/test/test-files. In eclipse, that can be done by going to the run/debug
configuration -> Arguments tab. In the Working directory select "other" and
enter the path to the test-files directory. I've added this information to
the wiki at http://wiki.apache.org/solr/TestingSolr

Note that you can also use ant from command-line to run your tests.

-- 
Regards,
Shalin Shekhar Mangar.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message