java - JUnit test from commandline -


i trying run junit 4 test commandline. current command:

java -cp c:\users\some\.m2\repository\junit\junit\4.11\junit-4.11.jar junit.textui.testrunner c:\some\path\target\test-classes\com\wicket\range\ui\mytest.class 

this gives class not found error.

i have tried following:

c:\some\path\target\test-classes>java -cp c:\users\some\.m2\repository\junit\junit\4.11\junit-4.11.jar junit.textui.testrunner com.wicket.range.mytest.class 

this gives class not found error; issue here?

i assume test class under c:\some\path\target\test-classes (in appropriate subdirectory). command has junit in it. need class path test , other dependencies.

try

java -cp c:\some\path\target\test-classes;c:\users\some\.m2\repository\junit\junit\4.11\junit-4.11.jar junit.textui.testrunner com.wicket.range.mytest.class 

Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -