netbeans junit No tests were created because no testable class was found

D

donlelel

Hi,

If someone gets this message, the cause may be the location for your
tests directory is not the right one. I had tests inside the src
directory (src\java\mypackagename\tests) and it didnt work - I moved
the tests directory up to be at the same level as src and it worked.

Also, make sure you have specified this tests directory in the project
properties -> test package folders.

Don
 
L

Lew

Hi,

If someone gets this message, the cause may be the location for your
tests directory is not the right one. I had tests inside the src
directory (src\java\mypackagename\tests) and it didnt work

Right, because that would have made the test class package
"mypackagename.tests" instead of just "mypackagename".

- Lew
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top