码迷,mamicode.com
首页 > 其他好文 > 详细

[Unit Test] Unit Test Brief Introduction

时间:2017-07-04 20:18:04      阅读:241      评论:0      收藏:0      [点我收藏+]

标签:lun   spec   rac   general   cto   sign   har   cte   character   


Levels of Testing
- Acceptance
- Performance
- Functional
- Integration
- Unit

Why Unit Testing
- Feedback Cycles
- Usage Model
- Eailier Bug Detection
- Refactoring

Test Driven Development (TDD)
`Write the tests before writing the code (incrementally)
- Better requirements understanding
- Better decomposition and design
- Better code testability
- Known expectation of code hebavior
- Bonus: unit tests & coverage

Frameworks
-General xUnit framework: Junit, Nunit CppUnit
-Mocking framework: mockito, easymock, powermocks
-Domain specific framework: HTTPUnit, xmlUnit, DBUnit
-Code Coverage: EclEmma Clover
-Performance Testing Tools: JMeter JUnitPerf JMeter + Badboy NeoLoad  WAS
-Continuous Integration Tools: Jenkins, CruiseControl
-Web Service UI: SoapUI Rest-Client

Writing Unit Tests for legacy Code
- Legacy Code any code without tests
- Refactoring: Layer, Injection
- Characterisation Test

Rspec
Aptana Studio

SPAL

[Unit Test] Unit Test Brief Introduction

标签:lun   spec   rac   general   cto   sign   har   cte   character   

原文地址:http://www.cnblogs.com/coder211/p/7117812.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!