Quantcast

scalatest irgnores classpath?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

scalatest irgnores classpath?

Daniel Lincke
Hi,

I have written a test for scalatest:
package a.b

import org.scalatest._
import org.scalactic.TolerantNumerics

class MyTest extends FlatSpec with Matchers {
...
}

I compiled into the lib directory of my project directory, and executing
from that directory works fine:

..myproject/lib$ scala org.scalatest.run a.b.MyTest
Run starting. ...
All tests passed.

Going one directory up I cannot run the test anymore:

..myproject$ scala -cp pathto_myproject/lib/ org.scalatest.run a.b.MyTest
*** RUN ABORTED ***
  java.lang.ClassNotFoundException: a.b.MyTest

I tried all kinds of quotes for the classpath, I also check with
-Ylog-classpath ... the pathto_myproject/lib/ directory appears under
userClassPath        = pathto_myproject/lib/


What is the problem here?

Thanks,
Daniel



--
Dr. Daniel Lincke

tel:  +49 30 2060 738-22
fax: +49 30-2060738-33
email: [hidden email]
web: http://www.globalclimateforum.org/index.php?id=daniel-lincke

Global Climate Forum
Adaptation and Social Learning
Neue Promenade 6, 10178 Berlin, Germany

--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Loading...