JUnit uruchamia wiersz poleceń
Mam następującą strukturę
lib/junit-4.10.jar
tests/Tester.java
tests/Tester.class
build/jar/jar_file.jar
(Tester należy do testów pakietów)
Potrafię skompilować testy za pomocą
javac -cp build/jar/jar_file.jar:lib/junit-4.10.jar tests/*.java
Nie mogę jednak uruchomić testów:
java -cp build/jar/jar_file.jar:lib/junit-4.10.jar org.junit.runner.JUnitCore tests.Tester
lub
java -cp build/jar/jar_file.jar:lib/junit-4.10.jar org.junit.runner.JUnitCore Tester
I otrzymuję następujące dane wyjściowe:
JUnit version 4.10
Could not find class: tests.Tester
Time: 0.001
OK (0 tests)
Jak rozwiązać ten problemCould not find class
problem? Myślę, że może to być związane z klasą.