I just wonder, how I get the additional :args passed to the options.

I tried this
  in my buildfile:
    test.using(:testng, :args=>['foo', 'bar'])
  and in buildr/java/tests.rb I added
    cmd_args += options[:args] unless options[:args].nil?
  to the run method of TestNG

Unfortunately options[:args] always is nil.

Can you help with this?

Or what should be the final solution for this?

Thanx && cheers,
Martin


On Tue, 2009-07-21 at 21:48 -0700, Alexis Midon wrote:
> agree with you. I can't see how to append arguments.
> 
> On Tue, Jul 21, 2009 at 4:36 PM, Martin Grotzke <
> [email protected]> wrote:
> 
> > Hi,
> >
> > we want to get junit reports from testng tests, so that the junit
> > reports can be processed by our build server (hudson).
> >
> > For this we want to pass additional arguments to testng
> > ('-usedefaultlisteners', 'false', '-listeners',
> > 'org.testng.reporters.JUnitXMLReporter').
> >
> > Is this possible using the existing using(options) approach?
> >
> > AFAICS it seems that this is currently not supported - at least one
> > would need to get the additional args (e.g. using :args=>...) and add
> > them as an array to the cmd_args.
> >
> > What do you think?
> >
> > Cheers,
> > Martin
> >
> >

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to