views:

754

answers:

2

I am running JUnit through TextMate, and when I try to run my test cases I get this error

JUnit version 4.5
Could not find class: ProgTest

Time: 0.001

OK (0 tests)

Progtest.java can be found here

A: 

Sounds like your working directory is not on your classpath when you run JUnit.

Lars Westergren
+1  A: 

Hmmm, I think we need more info here about the project layout and classpath.

It looks like ProgTest.class is not on the classpath while executing JUnit.

Did you start JUnit in the same enviroment your project uses?

HuibertGill
I placed JUnit in the System -> Library -> Java -> Extensions directory