Thanks emi. That was it.
But I'm only half way: where are the logged messages during unit tests ?? When
I run my platform app normally I find them in
netbeans-user-dir/var/log/messages.log, but is there a .log file for unit
tests? I've searched for one but without success...
Le samedi 20 juin 2020 à 19:17:16 UTC+2, Emilian Bold
<[email protected]> a écrit :
Maybe just plain -D
--emi
On Sat, Jun 20, 2020 at 7:48 PM Jerome Lelasseux
<[email protected]> wrote:
>
> I need to change the logging level of some files during unit tests (NB 11.3).
>
> According to this wiki page
> http://wiki.netbeans.org/DevRunningTestsPlatformApp it's possible to add
> command line parameters for unit tests using the "test.run.args" property.
>
> But when I add "test.run.args=-J-DMyLogger.level=200" in
> module/nbproject/project.properties, the unit test fails:
>
> Unrecognized option: -J-DMyLogger.level=200
> Error: Could not create the Java Virtual Machine.
> Error: A fatal exception has occurred. Program will exit.
>
> Is there another way to do it ?
>
>
>
>