Re: running tests from the command line

2011-07-16 Thread lewis john mcgibbney
Further to this, I have been working on a JIRA ticket for this [1]

If you could, can you please test. I will also shortly and hopefully we can
get this committed soon.

Thank you

[1] https://issues.apache.org/jira/browse/NUTCH-672

On Tue, Jul 12, 2011 at 9:36 PM, lewis john mcgibbney 
lewis.mcgibb...@gmail.com wrote:

 OK, it seems like you are comfortable with JUnit testing under ant but I
 think for purpose of the list, I will provide the following resource [1] for
 general info on configuring JUnit tests.

 I would comment that you may be able to get a more verbose output if you
 set heltonerror, printsummary and formatter type=plain for easier reading
 of output report.

 Basically what we are after is a report printed to a file or stdout to show
 where errors are present.

 Could you please have a look at the 'test' subsection of [1] and correct me
 on anything I have misinterpreted.

 [1] http://ant.apache.org/manual/Tasks/junit.html

 Finally, although it seems like everything is OK, it would be great to
 crack this one. It would be useful to run just JUnit tests with Ant from the
 command line.
 On Tue, Jul 12, 2011 at 8:55 PM, Tim Pease tim.pe...@gmail.com wrote:


 On Jul 12, 2011, at 11:51 AM, lewis john mcgibbney wrote:

  What plugin are you hacking away on? You're own custom one or one
 already
  shipped with Nutch? Just so we are reading from the same page.
 

 Adding some http.agent.name support to the HTMLMetaProcessor found in
 the parse-html plugin. For some reason all JUnit test results are not being
 output to stdout when running the tests. The ant task claims there are
 failures, but none are shown.

 I had to hack the ant task so that haltonfailure is true and fork is
 false. Then the expected output was showing up.

 To shorten the test loop a little bit I was hoping ant provided an easy
 wan to run just the tests for the parse-html plugin.

 Thanks for the speedy reply!

 Blessings,
 TwP

  This, along with some further documentation for running various classes
 from
  the command line is definately worth inclusion in the CommandLineOptions
  page of the wiki.
 
  On Tue, Jul 12, 2011 at 6:00 PM, Tim Pease tim.pe...@gmail.com wrote:
 
  At the root of the Nutch 1.3 project, what is the magic ant incantation
 to
  run only the tests for the plugin I'm currently hacking away on? I'm
 looking
  for the command line syntax.
 
  Blessings,
  TwP
 
 
 
 
  --
  *Lewis*




 --
 *Lewis*




-- 
*Lewis*


running tests from the command line

2011-07-12 Thread Tim Pease
At the root of the Nutch 1.3 project, what is the magic ant incantation to run 
only the tests for the plugin I'm currently hacking away on? I'm looking for 
the command line syntax.

Blessings,
TwP

Re: running tests from the command line

2011-07-12 Thread lewis john mcgibbney
What plugin are you hacking away on? You're own custom one or one already
shipped with Nutch? Just so we are reading from the same page.

This, along with some further documentation for running various classes from
the command line is definately worth inclusion in the CommandLineOptions
page of the wiki.

On Tue, Jul 12, 2011 at 6:00 PM, Tim Pease tim.pe...@gmail.com wrote:

 At the root of the Nutch 1.3 project, what is the magic ant incantation to
 run only the tests for the plugin I'm currently hacking away on? I'm looking
 for the command line syntax.

 Blessings,
 TwP




-- 
*Lewis*