[Unit Test] Unit Test Brief Introduction
Posted coder211
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[Unit Test] Unit Test Brief Introduction相关的知识,希望对你有一定的参考价值。
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的主要内容,如果未能解决你的问题,请参考以下文章
配置 Cypress、cypress-react-unit-test 和 React
LoadError: 无法加载此类文件 -- test/unit/error
Python Unit Test - Test Report: HTMLTestRunner -1