Writing tests is not start for IDEA plugin

Hi,
I am using IDEA 2021.2 with diffblue plugin. After preparing and indexing successfully, it’s not start to write tests, and the writing tests icon is gray with no logs showing

1 Like

Hello @caps

Thank you for contacting Diffblue; I am sorry that you are facing this issue

A description of the icons can be found here: Testability and activity icons | Diffblue Docs

Which icon are you seeing? Is it the “Not directly testable” icon? (the flask with a strike through it)

Kind Regards

Matt @ Diffblue

Hi @Matt ,
I mean the icon of Diffblue Cover in IDEA console.
Prepare phase marked success
Index marked success
But for ‘Writing Tests’ is never start and show as gray

Hi @caps

Thanks for the explanation - please could you send us the plugin logfile so we can investigate further? Information about finding the file can be found here - Log file | Diffblue Docs

Thank you for your patience

Matt @ Diffblue

Hi @Matt ,
logging details as below:

08:58:00.292 [WARN][sentry-pool-10-thread-1][c.d.i.p.r.e] Sending report failed
09:13:51.557 [WARN][sentry-pool-11-thread-1][c.d.i.p.r.e] Sending report failed
17:37:45.723 [WARN][sentry-pool-1-thread-1][c.d.i.p.r.e] Sending report failed
17:39:15.906 [WARN][sentry-pool-2-thread-1][c.d.i.p.r.e] Sending report failed
17:41:12.892 [WARN][sentry-pool-3-thread-1][c.d.i.p.r.e] Sending report failed
17:42:37.810 [WARN][sentry-pool-4-thread-1][c.d.i.p.r.e] Sending report failed
17:43:18.178 [WARN][sentry-pool-5-thread-1][c.d.i.p.r.e] Sending report failed
17:46:18.237 [WARN][sentry-pool-6-thread-1][c.d.i.p.r.e] Sending report failed
17:46:37.432 [WARN][sentry-pool-7-thread-1][c.d.i.p.r.e] Sending report failed

Do we have a solution to this, because I’m still facing this issue. indexing completes and then nothing happens.
Java version being used is 1.8.0

image

attaching log file below :
cover-plugin.log (52.8 KB)

this issue now stand resolved for me. It was occurring coz my project was using java 16. You can check the same using “printenv | grep JAVA_HOME” and then updating java to required version.

Hello @Glynes_Dsouza

I am very sorry for the delay in getting back to you - I am glad you managed to sort out your environmental issue. Please let us know if you have any further questions - we are always happy to help

Kind Regards

Matt @ Diffblue

Hi Glynes, can you please elaborate on the step? I am facing same problem and not able to solve it.

Hi jignyasa,

We are sorry for the issue that you are facing. Would it be possible to upload a log file, after masking any sensitive text in it? Additionally may we have a print screen of your gutter Diffblue icons? In the meanwhile, please make sure that your IntelliJ IDE is up to date and that the latest version (06.01) of Diffblue Cover plugin is installed though Settings → Plugins.

We are looking forward to working with you.
Kind Regards.

Cristian

support.log (41.8 KB)
Hi Cristian,
I have attached the logs and screenshot.

Thanks for the quick reply.

Hi jignyasa,

Thank you for the log file. Our plugin is tightly connected with IntelliJ.

A successful run of Diffblue Cover shows something like this in the log file:
Selected Java language compliance level: 17
Selected test framework: JUnit Jupiter 5
Selected test validation: enabled
Prefixes for filtering classes/methods:
com…
com…
Gathering methods to test…
Environment summary:
--------------------
Java version 17.0.5 SUCCESS

Notice that there is a list of [package.class] identified in order to be tested but yours doesn’t have such a list. Also notice that that Selected Java language compliance level matches the Java version found by Diffblue Cover.

In your case the log file shows:
Selected Java language compliance level: 11
Environment summary:

  • -------------------- *
    Java version 17.0.5 SUCCESS

In your case the issue seems to indicate a problem with the project setup. Can you build it? Is it successfully indexed?