java - how to run testng test cases jar with all dependence? -
i use intelli j ide build 1 executable jar contains dependencies , test classes.
the /src/main/java/meta-inf/manifest.mf
manifest-version: 1.0 main-class: org.testng.testng
when run jar command
java -jar tahoe-test.jar org.testng.testng suites/t123.xml
i error:
error: invalid or corrupt jarfile tahoe-test.jar
if unzip jar , run command
java org.testng.testng suites/t123.xml
all works fine! why cant run jar?
try run:
java -cp tahoe-test.jar org.testng.testng suites/t123.xml
Comments
Post a Comment