Tests not written

I have this error in Intellij when trying to have DiffBlue write tests:

R006 - Static initializer failed: 1

Exception: com.diffblue.cover.sandbox.execution.ForbiddenByPolicyException: to load JNI library ‘xi_c’, which currently is not in the accepted list at java.lang.Runtime.loadLibrary0(Runtime.java:865) at java.lang.System.loadLibrary(System.java:1122)

What list is being used?

Hello @mteitz

I am very sorry for the delay in getting back to you - I will do everything I can to help you out

I am just talking to our developers about this, we will get back to you today

Again, I am very sorry that we missed your message - we are always happy to help

Kind Regards

Matt @ Diffblue

Hi @mteitz,

Thank you for getting in touch, I am sorry for the delay in getting back to you

Please could you try disabling the ‘security sandbox policy’ to see if we create tests correctly? These will be disabled with the @Ignore or @Disabled annotation as they may be harmful to your system so should be checked first.

By default, DCover runs with the Java sandbox turned on because we do not want to damage your system environment by wiping your filesystem, sending sensitive data on the network or deleting your database. Also, if that code writes to the file system or does network IO then we run the risk of non-deterministic behavior. We try to mock out this kind of IO, but there are situations where we can’t.

The policy can be disabled in the Diffblue Cover IntelliJ Plugin in the “Diffblue > Settings” menu. It can be disabled in the CLI version by using the argument --disable-security-policy .

image

Please let us know the outcome so we can further inspect what is happening here

Thank you once again for getting in touch and let us know if you have any further questions.

Kind Regards

Matt @ Diffblue