1
此線程顯示如何使用JUnit測試來測試JAR。不過,我想從命令行提交其他屬性(因爲我想測試我的主要方法)。如何將參數添加到從命令行觸發的junit測試?
How to run JUnit tests for Java from the command line
例如 java -cp /usr/share/java/junit.jar org.junit.runner.JUnitCore [MyTest] [PortNumber] [fileToRead]
任何可能的事情?