[ 
https://issues.apache.org/jira/browse/SOLR-2299?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Muir updated SOLR-2299:
------------------------------

    Attachment: SOLR-2299.patch

Same patch, i only fixed a couple tests that explicitly used File to use 
resources instead.

I looked at all the failing ones, its a little bit of work but I think its 
definitely feasible that
we get the solr tests working so that:
# you put test resources in classpath
# tests are independent of current working directory.

I think this is just a good general simplification (nothing to do with eclipse) 
and is good
for the ant build too, so that tests dont have to run with a CWD of 
src/test/test-files in ant.

The problem with the way we do this now (even in ant) is that i've sporatically 
seen tests actually create files in this CWD, which means we are creating 
leftovers in a src directory that could accidentally be committed, among other 
problems.

I'd like to commit this now and iterate on the remaining individual tests so 
that they open their test resources all as resources... its not that many left 
but some are tricky.


> improve test-running from eclipse
> ---------------------------------
>
>                 Key: SOLR-2299
>                 URL: https://issues.apache.org/jira/browse/SOLR-2299
>             Project: Solr
>          Issue Type: Test
>          Components: Build
>            Reporter: Robert Muir
>             Fix For: 3.1, 4.0
>
>         Attachments: SOLR-2299.patch, SOLR-2299.patch
>
>
> In eclipse, its currently difficult to get a solr development environment 
> working.
> One big thing that would help would be to make it easier to run the tests.
> When loading resources, if we checked the config dir + file directory from 
> the resource path,
> then users could simply add src/test/test-files to their eclipse build 
> classpath, and tests would just work from the IDE.
> I gather that this might make things easier for other IDEs too, though I'm 
> aware that ones like Intellij
> let you configure the test 'working directory' on a project basis, but 
> eclipse doesn't 
> (you have to make a custom run configuration every time you run the tests)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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

Reply via email to