You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/12/16 06:53:00 UTC

[jira] [Updated] (NETBEANS-4550) NetBeans show error in test classes when we have module-info in test

     [ https://issues.apache.org/jira/browse/NETBEANS-4550?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ASF GitHub Bot updated NETBEANS-4550:
-------------------------------------
    Labels: pull-request-available  (was: )

> NetBeans show error in test classes when we have module-info in test
> --------------------------------------------------------------------
>
>                 Key: NETBEANS-4550
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-4550
>             Project: NetBeans
>          Issue Type: Bug
>    Affects Versions: 12.0
>            Reporter: Pavel_K
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: Screenshot from 2020-07-07 13-44-17.png
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Here is a test project [https://github.com/PashaTurok/jpms-resource-test1] that has module-info in src/test/java (it is possible starting from surefire/failsafe 3.0.0-M5.
> When we do in-module testing the name of the src/test/java/module-info is the same as the name of src/main/java/module-info. For details see [https://sormuras.github.io/blog/2018-09-11-testing-in-the-modular-world.html]
> However, NB works badly with such configuration it shows erros and doesn't fix imports etc. See the picture.  !Screenshot from 2020-07-07 13-44-17.png!
> To make situation clearer.
>  
> There are these alternatives to use tests with jpms modules:
> 1. main and test without {{module-info}} (classpath)
>  2. main with {{module-info}}, but test without {{module-info}} (main in modulepath and tests in classpath)
>  3. main and test on modulepath:
>  # Two modules: one is a main module and the other is a test module with different packages.
>  # One merged module that contains both tests and main classes with same package names.
>  This issue is about 3.2.
> These details were also discussed for SF and FS plugins here https://issues.apache.org/jira/browse/SUREFIRE-1811



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists