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

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -