Mailing List Archive

How to see test case logs in Intellij
Hi Lucene devs,
I am pretty new to the Lucene project and to the Gradle build tool also.
When I run any test case via Intellij, I am not able to see any logs
related to that test case. Do I need to set some special property in some
config file to view the logs ? Please help. Thank you.


Rushabh Shah
Re: How to see test case logs in Intellij [ In reply to ]
Tests generally don't print or log anything.

If you want them to print tons of stuff, pass -Ptests.verbose=true to gradle.
You can do it in idea IDE by going to "Run" menu, "Edit
Configurations", and adding -Ptests.verbose=true to the command line
of the particular test (e.g. TestDemo)

On Wed, May 18, 2022 at 2:28 PM Rushabh Shah
<rushabh.shah@salesforce.com.invalid> wrote:
>
> Hi Lucene devs,
> I am pretty new to the Lucene project and to the Gradle build tool also. When I run any test case via Intellij, I am not able to see any logs related to that test case. Do I need to set some special property in some config file to view the logs ? Please help. Thank you.
>
>
> Rushabh Shah

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
Re: How to see test case logs in Intellij [ In reply to ]
Thank you Robert !


Rushabh Shah


On Wed, May 18, 2022 at 11:52 AM Robert Muir <rcmuir@gmail.com> wrote:

> Tests generally don't print or log anything.
>
> If you want them to print tons of stuff, pass -Ptests.verbose=true to
> gradle.
> You can do it in idea IDE by going to "Run" menu, "Edit
> Configurations", and adding -Ptests.verbose=true to the command line
> of the particular test (e.g. TestDemo)
>
> On Wed, May 18, 2022 at 2:28 PM Rushabh Shah
> <rushabh.shah@salesforce.com.invalid> wrote:
> >
> > Hi Lucene devs,
> > I am pretty new to the Lucene project and to the Gradle build tool also.
> When I run any test case via Intellij, I am not able to see any logs
> related to that test case. Do I need to set some special property in some
> config file to view the logs ? Please help. Thank you.
> >
> >
> > Rushabh Shah
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>
>
Re: How to see test case logs in Intellij [ In reply to ]
Also, IntelliJ can run tests in two modes - via gradle or directly. If
you switch to direct mode, the logs should be printed without any
additional properties.

Dawid

On Wed, May 18, 2022 at 8:53 PM Robert Muir <rcmuir@gmail.com> wrote:
>
> Tests generally don't print or log anything.
>
> If you want them to print tons of stuff, pass -Ptests.verbose=true to gradle.
> You can do it in idea IDE by going to "Run" menu, "Edit
> Configurations", and adding -Ptests.verbose=true to the command line
> of the particular test (e.g. TestDemo)
>
> On Wed, May 18, 2022 at 2:28 PM Rushabh Shah
> <rushabh.shah@salesforce.com.invalid> wrote:
> >
> > Hi Lucene devs,
> > I am pretty new to the Lucene project and to the Gradle build tool also. When I run any test case via Intellij, I am not able to see any logs related to that test case. Do I need to set some special property in some config file to view the logs ? Please help. Thank you.
> >
> >
> > Rushabh Shah
>
> ---------------------------------------------------------------------
> 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: How to see test case logs in Intellij [ In reply to ]
Hi, Shah.
I guess I see something like this recently. When I run Lucene test in
intellyJ via gradle, debug view has two tabs: TestFooBar, :test.
Stack and variables are shown in latter one but console output is shown in
the former one.

On Wed, May 18, 2022 at 9:27 PM Rushabh Shah
<rushabh.shah@salesforce.com.invalid> wrote:

> Hi Lucene devs,
> I am pretty new to the Lucene project and to the Gradle build tool also.
> When I run any test case via Intellij, I am not able to see any logs
> related to that test case. Do I need to set some special property in some
> config file to view the logs ? Please help. Thank you.
>
>
> Rushabh Shah
>


--
Sincerely yours
Mikhail Khludnev