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

Discussion in 'Java' started by donlelel@gmail.com, Dec 21, 2006.

  1. Guest

    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
     
    , Dec 21, 2006
    #1
    1. Advertising

  2. Lew Guest

    Re: netbeans junit No tests were created because no testable classwas found

    wrote:
    > 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
     
    Lew, Dec 21, 2006
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jan
    Replies:
    0
    Views:
    3,866
  2. Phillip Lord

    JUnit, writing todo tests...

    Phillip Lord, Feb 9, 2004, in forum: Java
    Replies:
    4
    Views:
    886
    Scott Ellsworth
    Feb 12, 2004
  3. Replies:
    8
    Views:
    916
  4. timjowers
    Replies:
    1
    Views:
    5,526
    johnj
    May 4, 2011
  5. Testable Webservice supporting site

    , Apr 14, 2006, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    122
Loading...

Share This Page