差異處
這裏顯示兩個版本的差異處。
Both sides previous revision 前次修改 下次修改 | 前次修改 下次修改 Both sides next revision | ||
java:code_quality [2020/02/09 01:15] tony [Resource] |
java:code_quality [2020/08/02 18:01] tony |
||
---|---|---|---|
行 7: | 行 7: | ||
* [[.:junit:tech:ignore|Conditionally ignore tests]] | * [[.:junit:tech:ignore|Conditionally ignore tests]] | ||
* [[.:junit:tech:capture_log4j_output|How to verify the Log4j output?]] | * [[.:junit:tech:capture_log4j_output|How to verify the Log4j output?]] | ||
+ | * [[java:junit4:rules:temporaryfolder|JUnit4 : TemporaryFolder Rule]] | ||
==== Resource ==== | ==== Resource ==== | ||
* [[http://www.ibm.com/developerworks/cn/java/j-lo-junit-installanywhere/index.html|Test InstallAnywhere By JUnit]] | * [[http://www.ibm.com/developerworks/cn/java/j-lo-junit-installanywhere/index.html|Test InstallAnywhere By JUnit]] | ||
行 16: | 行 17: | ||
* [[https://stackoverflow.com/questions/473401/get-name-of-currently-executing-test-in-junit-4|在console顯示testcase名稱的方法]] | * [[https://stackoverflow.com/questions/473401/get-name-of-currently-executing-test-in-junit-4|在console顯示testcase名稱的方法]] | ||
* [[https://www.codingblocks.net/podcast/how-to-write-amazing-unit-tests/|Clean Code – How to Write Amazing Unit Tests?]] | * [[https://www.codingblocks.net/podcast/how-to-write-amazing-unit-tests/|Clean Code – How to Write Amazing Unit Tests?]] | ||
+ | * [[https://martinfowler.com/bliki/UnitTest.html?fbclid=IwAR3ljmcfHo9zw6FipOI7vwx1C8HyZIrq20QJQgzxzMVMc5Zy40KGX-qIVUc|martinfowler-unit test]] | ||
+ | * [[https://tyrrrz.me/blog/unit-testing-is-overrated?fbclid=IwAR07iVReCHk265_pNhhrKN5SFMtZIz1n6PFwApqNm2YozgiE4b96Woyp_xA|Unit Testing is Overrated]] | ||
===== JVisualVM ===== | ===== JVisualVM ===== | ||
* [[.:jvisualvm:troubleshooting|Throbuleshooting]] | * [[.:jvisualvm:troubleshooting|Throbuleshooting]] | ||
+ | ===== Code Quality Tools ===== | ||
+ | * [[java:sonarlint|SonarLint]] | ||
+ | * [[java:findbug|FindBug]] | ||
===== Find Bug ===== | ===== Find Bug ===== | ||
能夠幫你找到code內不好的'味道'與隱藏的bug,下面的內容是我邊修邊記錄的內容。友藏內心的獨白: 真的找的到bug!\\ | 能夠幫你找到code內不好的'味道'與隱藏的bug,下面的內容是我邊修邊記錄的內容。友藏內心的獨白: 真的找的到bug!\\ |