For closure, the problem with this one turned out to be the above "test" was in fact not a test but a shared class used on other related tests.
Eric Bresie [email protected] On Sun, Feb 21, 2021 at 12:17 PM Jaroslav Tulach <[email protected]> wrote: > Dne pátek 19. února 2021 17:42:52 CET, Eric Bresie napsal(a): > > While working on some NB code and trying some of the unit tests, I have > > been seeing some test warnings indicating something like > > > > "No tests found in > > org.netbeans.modules.db.sql.editor.completion.CompletionQueryTestCase > > junit.framework.AssertionFailedError" > > > > Why is this warning registering (and causing a failure)? > > > > Assume Netbean Tests are based on JUnit tests and maybe it's complaining > > because there are no annotated tests (i.e. @Test) present or maybe the > > method containing the "assert" test is not named correctly (i.e. is > > "CompleteQueryTestCase" and not something like > "testCompleteQueryTestCase" > > type method names. > > > > What is the general practice when developing unit tests in Netbeans? > > https://openide.netbeans.org/tutorial/test-patterns.html > -jt > > > >
