1. Personnel Organization
Experts help new users checkCode. Based on the specific level of the novice, you can check every row and key code.
2. Code style
The Code style requires uniform provisions on public variables/methods.
Code comments must be annotated with classes, key variables/methods, and important logic.
3. codereview
SVN can view the code submission record for spot check.
Organize code reviews on a regular basis.
4. Pre-test
Package the functions and basic functions of the test one hour or half a day before the test.
DdmsProgramMemory usage/growth during the running process, testing the maximum number of concurrent threads
5. Monkey Test
6. Static code analysis
Common examples include findbugs, PMD, checkstyle, and jtest. Such tools can indeed expose many low-level errors in code, such: null Pointer Reference, array out-of-bounds, I/O not closed, method return value not used, empty try/catch/finally blocks, etc.
IntroductionArticleAddress: it is necessary to introduce one of these tools during internal development of the team.
Comparison of common Java static code analysis tools
Http://www.oschina.net/question/129540_23043
Focus on the Code test reports of these tools in this article.
Findbugs Introduction: http://baike.baidu.com/view/2367937.htm
7. dynamic memory Analysis
Use mat to Analyze memory leakage 1
Http://blog.csdn.net/dreamxiang68/article/details/7625419
Use mat to Analyze memory leakage 2
Http://blog.csdn.net/dreamxiang68/article/details/7625437
8. strictmode
9. Hierarchy viewer and layoutopt: Ui Check Tool
10. traceview
analyzes the performance using the Debug. startmethodtracing and Debug. stopmethodtracing methods.