Traditional Culture Encyclopedia - Traditional customs - What exactly is unit testing? How should they be done?
What exactly is unit testing? How should they be done?
Unit testing is generally done by either developers or testers. There is no absolute standard for who should do it, it depends on the company.
Unit tests are implemented in the following ways: manual static checking, dynamic execution tracking.
Manual static checking: it is usually called "code walking", mainly to ensure the correctness of the code logic.
Dynamic execution tracking: that is, to run the program code to check whether the actual results and expected results are consistent.
Developers do unit testing:
Advantages: developers are the most familiar with the code, and developers have relatively strong programming skills, so developers write their own unit tests are more efficient and coverage.
Disadvantages: developers usually write business code to spend a lot of time, sometimes there is really no time to write unit tests; and most developers do not have too good testing ideas, unit testing may be just write the simplest use case on the end; write their own code to test, often are not reliable.
Testers do unit testing:
Advantages: testers have a more systematic testing ideas, can better ensure the coverage of use cases. And by writing single test tests can better understand the specific code structure, flow, for the subsequent business testing is also very favorable.
Disadvantages: testers programming skills are relatively weak, if different programming is unable to carry out unit testing. And testers are not as familiar with the code as developers, and the efficiency will be lower.
- Previous article:How to get a 3d perspective in the glory of the king?
- Next article:What's your favorite movie?
- Related articles
- Which way of providing for the aged is better?
- Sichuan Qingyin is also known as what
- What snacks are there in Chengdu?
- Ping Pong Backhand Attacking Moves
- I want to know how to write a good poem.
- Methods and skills of tracking customers
- Nanci Tanci
- What is cartoon image
- What are the customs, characteristics, special festivals, special origins and special history in Nanning?
- Does the music tape we listen to every day have a capacity, about several megabytes?