[ 
https://issues.apache.org/jira/browse/NUTCH-672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13082558#comment-13082558
 ] 

Lewis John McGibbney commented on NUTCH-672:
--------------------------------------------

OK having tried to get this working for sometime I am pretty puzzled, and think 
that it must be more than a class loading problem, however I cannot prove this.

It was my intention to run individual test classes by simulating exactly what 
the patch would do, however setting the classpath manually then running the 
junit command passing the TestFetcher class as an argument I get the following:

{code}
lewis@lewis-01:~/ASF/branch-1.4/runtime/local$ export 
CLASSPATH=$CLASSPATH:~/ASF/branch-1.4/src/test
lewis@lewis-01:~/ASF/branch-1.4/runtime/local$ echo $CLASSPATH
:/home/lewis/ASF/branch-1.4/src/test
lewis@lewis-01:~/ASF/branch-1.4/runtime/local$ bin/nutch junit 
org.apache.nutch.fetcher.TestFetcher
Class not found "org.apache.nutch.fetcher.TestFetcher"
{code}

I have been able to run test classes using the method described by Todd above, 
however I'm wondering if anyone else can  advise where I am going wrong with 
this issue? It's been a loooong day ;)

> allow unit tests to be run from bin/nutch
> -----------------------------------------
>
>                 Key: NUTCH-672
>                 URL: https://issues.apache.org/jira/browse/NUTCH-672
>             Project: Nutch
>          Issue Type: New Feature
>          Components: build
>            Reporter: Todd Lipcon
>            Assignee: Lewis John McGibbney
>            Priority: Minor
>         Attachments: 
> 0001-NUTCH-672-allow-junit-tests-to-be-run-from-bin-nutc.patch, 
> NUTCH-672-junit-test-commandline.patch
>
>
> In development it's handy to be able to run a single test case easily. You 
> can do it with ant -Dtestcase=foo test, but that's slow since it still checks 
> all the plugins for changes, rebuilds jars, etc.
> This patch adds a command to bin/nutch to run a junit against what's already 
> compiled. It's much faster than using ant. Recommended for use with nutch 
> -core

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to