我知道該怎麼辦好JUnit測試類:無法運行單一的測試方法與Maven
mvn test -Dtest=classname
但是當我試圖運行單一的單元測試方法如下:
mvn test -Dtest=classname#methodname
我總是得到錯誤:即沒有測試被執行
個參考文獻:
http://maven.apache.org/plugins/maven-surefire-plugin/examples/single-test.html http://stackoverflow.com/questions/1873995/run-a-single-test-method-with-maven
請指教,爲什麼我的測試方法是沒有得到execusted,我我正在使用maven 2和junit 4.7。
什麼是最新的穩定版本該插件,與Maven 2的工作正常嗎? –
2.8版工作得很好:' org.apache.maven.plugins Maven的萬無一失,插件 2.8 ' –