Maven???????????????????????
???????????? ???????[ 2014/6/11 14:50:45 ] ???????????????
??????junit??????????棺
????1. -------------------------------------------------------
????2. T E S T S
????3. -------------------------------------------------------
????4. Running com.liuyan.account.mail.AccountImageServiceImplTest
????5. ---------------------------------1990
????6. Tests run: 2?? Failures: 0?? Errors: 0?? Skipped: 0?? Time elapsed: 0.926 sec
????7. Running com.liuyan.account.mail.AccountImageUtilTest
????8. Tests run: 1?? Failures: 0?? Errors: 0?? Skipped: 0?? Time elapsed: 0.001 sec
????9.
????10. Results :
????12. Tests run: 3?? Failures: 0?? Errors: 0?? Skipped: 0
???????б?????junit?????????????????????Eclipse???е????????????????????3?????????????Ч??????????0??????????????0?????????????????0????
???????????????????????????????????????
????1. mvn package -DskipTests
?????????????????Maven??????????????д??????????????????????????????á?Maven???????src/test/java?????????????????????????????1淶?????Maven????????????????????????
????Test*.java:?κ???????Test????????
????*Test.java: ?κ???????Test???β????
????*TestCase.java: ?κ???????TestCase???β????
?????????????????????????????????????????????????????????pom.xml??????????
1. <build>
2. <plugins>
3. <plugin>
4. <groupId>org.apache.maven.plugins</groupId>
5. <artifactId>maven-surefire-plugin</artifactId>
6. <version>2.5</version>
7. <configuration>
8. <skipTests>true</skipTests>
9. </configuration>
10. </plugin>
11. </plugins>
12. </build>
|
??????????????????????????????????????????????ɡ?
??????????????????????????????????????????????????????????????????????
????1. test -Dtest=AccountImageServiceImplTest
?????????????????????????????????????????pom????к?????????????????????
??????????????????????
????1. mvn test -Dtest=AccountImageServiceImplTest??AccountImageUtilTest
????????????????????в???
????1. mvn test -Dtest=*Test
1. <build>
2. <plugins>
3. <plugin>
4. <groupId>org.apache.maven.plugins</groupId>
5. <artifactId>maven-surefire-plugin</artifactId>
6. <version>2.5</version>
7. <configuration>
8. <includes>
9. <include>**/*Test.java</include>
10. </includes>
11. <excludes>
12. <exclude>**/AccountImageUtilTest.java</exclude>
13. </excludes>
14. </configuration>
15. </plugin>
16. </plugins>
17. </build>
|
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11