You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Geertjan Wielenga (JIRA)" <ji...@apache.org> on 2019/07/05 12:08:00 UTC

[jira] [Comment Edited] (NETBEANS-2802) Netbeans doesn't work correctly with integration tests when there is a module-info

    [ https://issues.apache.org/jira/browse/NETBEANS-2802?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16879180#comment-16879180 ] 

Geertjan Wielenga edited comment on NETBEANS-2802 at 7/5/19 12:07 PM:
----------------------------------------------------------------------

Note there have been some discussions and probably similar issues on this point, e.g.:

https://lists.apache.org/thread.html/a0cffd22f283958c9f1bbd833cc0e12915d9d15bf821b28a0e99d630@%3Cusers.netbeans.apache.org%3E

E.g., maybe try this as a workaround:

{quote}My solution was to put TestNG on the classpath until I find something
better.{quote}


was (Author: geertjanwielenga):
Note there have been some discussions and probably similar issues on this point, e.g.:

https://lists.apache.org/thread.html/a0cffd22f283958c9f1bbd833cc0e12915d9d15bf821b28a0e99d630@%3Cusers.netbeans.apache.org%3E

> Netbeans doesn't work correctly with integration tests when there is a module-info
> ----------------------------------------------------------------------------------
>
>                 Key: NETBEANS-2802
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-2802
>             Project: NetBeans
>          Issue Type: Bug
>            Reporter: Pavel_K
>            Priority: Major
>         Attachments: Screenshot from 2019-07-05 14-13-19.png, Screenshot from 2019-07-05 14-16-25.png, netbeansit.zip
>
>
> I use NB 11.0 and I work on JPMS module with integrations tests. My folder structure is like
> this:
> {code:java}
> |-- pom.xml
>  `-- src
>     |-- it
>     |   `-- java
>     |       `-- com
>     |           `-- soebes
>     |               `-- maui
>     |                   `-- it
>     |                       `-- BitMaskIT.java
>     |-- main
>     |   `-- java
>     |       `-- com
>     |           `-- soebes
>     |               `-- maui
>     |                   `-- it
>     |                       `-- BitMask.java
>     `-- test
>         `-- java
>             `-- com
>                 `-- soebes
>                     `-- maui
>                         `-- it
>                             `-- BitMaskTest.java
> {code}
> The problem is NB wants JUnit modules for integrations tests to be declared in module-info. Otherwise it shows errors. At the same time code all execution tests are compiled and run without problems. Besides there are problems with classes dependencies in integrations tests, for example, code complete doesn't work at all.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
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