You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Michael McCandless <lu...@mikemccandless.com> on 2012/06/02 15:16:36 UTC

seeing stdout when running "ant test"?

It looks like we redirect stdout somewhere when we run "ant test"?  I
don't see my sops coming out in that case .... but if I run a single
test case, I do see them...

Mike McCandless

http://blog.mikemccandless.com

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


Re: seeing stdout when running "ant test"?

Posted by Michael McCandless <lu...@mikemccandless.com>.
On Sat, Jun 2, 2012 at 11:37 AM, Dawid Weiss
<da...@cs.put.poznan.pl> wrote:
>> Thanks Dawid!  -Dtests.showSuccess=true is what I was looking for ...
>> I'll add it to the wiki.
>
> Thanks, I'm wiki-challenged. There is also command-line help readily
> available if you type:
>
> ant test-help
>
>     [echo] # Include additional information like what is printed to
>     [echo] # sysout/syserr, even if the test passes.
>     [echo] # Enabled automatically when running for a single test case.
>     [echo] ant -Dtests.showSuccess=true test

Thanks Dawid.  ant test-help is very useful; one of these days I'll
remember to run it when I'm confused :)

Mike McCandless

http://blog.mikemccandless.com

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


Re: seeing stdout when running "ant test"?

Posted by Dawid Weiss <da...@cs.put.poznan.pl>.
> Thanks Dawid!  -Dtests.showSuccess=true is what I was looking for ...
> I'll add it to the wiki.

Thanks, I'm wiki-challenged. There is also command-line help readily
available if you type:

ant test-help

     [echo] # Include additional information like what is printed to
     [echo] # sysout/syserr, even if the test passes.
     [echo] # Enabled automatically when running for a single test case.
     [echo] ant -Dtests.showSuccess=true test

Dawid

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


Re: seeing stdout when running "ant test"?

Posted by Michael McCandless <lu...@mikemccandless.com>.
Thanks Dawid!  -Dtests.showSuccess=true is what I was looking for ...
I'll add it to the wiki.

Mike McCandless

http://blog.mikemccandless.com


On Sat, Jun 2, 2012 at 10:28 AM, Dawid Weiss
<da...@cs.put.poznan.pl> wrote:
>> It looks like we redirect stdout somewhere when we run "ant test"?  I
>> don't see my sops coming out in that case .... but if I run a single
>> test case, I do see them...
>
> If a test passes the output is not written to the console. This is
> intentional to restrict the amount of noise written to the console.
> Hints:
>
> 1) Full output for every test is always written to tests-report.txt
> (under build folder).
>
> 2) pass -Dtests.showSuccess=true to get the output for successful
> tests or put it in any of the following:
>
>  <property file="${user.home}/lucene.build.properties"/>
>  <property file="${user.home}/build.properties"/>
>  <property file="${basedir}/build.properties"/>
>  <property file="${common.dir}/build.properties"/>
>
> to get the setting enabled permanently for every run.
>
> Note that the output is written only after the test completes (because
> otherwise it'd be difficult to coordinate the output from different
> jvms).
>
> Dawid
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>

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


Re: seeing stdout when running "ant test"?

Posted by Dawid Weiss <da...@cs.put.poznan.pl>.
> It looks like we redirect stdout somewhere when we run "ant test"?  I
> don't see my sops coming out in that case .... but if I run a single
> test case, I do see them...

If a test passes the output is not written to the console. This is
intentional to restrict the amount of noise written to the console.
Hints:

1) Full output for every test is always written to tests-report.txt
(under build folder).

2) pass -Dtests.showSuccess=true to get the output for successful
tests or put it in any of the following:

  <property file="${user.home}/lucene.build.properties"/>
  <property file="${user.home}/build.properties"/>
  <property file="${basedir}/build.properties"/>
  <property file="${common.dir}/build.properties"/>

to get the setting enabled permanently for every run.

Note that the output is written only after the test completes (because
otherwise it'd be difficult to coordinate the output from different
jvms).

Dawid

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