I'm using JUnit 5. The tests are picked up fine.

Am 08.09.22 um 17:49 schrieb Alonso Del Arte:
Is NetBeans still incapable of using JUnit 5? The JUnit 4 test runner does not pick up non-public tests, so then the indication that the test is not used is perfectly correct.

Al

On Thu, Sep 8, 2022 at 11:23 AM Ulrich Mayring <ulrich.mayr...@isys.de <mailto:ulrich.mayr...@isys.de>> wrote:

    When I define a package-private unit test like:

    @Test
    void myMethod() { ... }

    then Netbeans underlines the method name and hints "myMethod is
    never used".

    If I define the test method to be public, this hint is not displayed.

    In a way this is logical behavior, but I wonder whether it is useful.
    Perhaps a unit test or even any other test should be recognized to be
    "top level methods", even if they are package private.

    Any opinions on this?

    Ulrich

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
    <mailto:users-unsubscr...@netbeans.apache.org>
    For additional commands, e-mail: users-h...@netbeans.apache.org
    <mailto:users-h...@netbeans.apache.org>

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



--
Alonso del Arte
Author at SmashWords.com <https://www.smashwords.com/profile/view/AlonsoDelarte>
Musician at ReverbNation.com <http://www.reverbnation.com/alonsodelarte>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

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

Reply via email to