S
S
Sannis2011-02-17 18:49:06
Software testing
Sannis, 2011-02-17 18:49:06

Unit vs regression testing

Suppose the following situation: a certain library is developed using TDD, and for each method from the library there is a test that determines its behavior. Can the concept of regression tests arise in such a situation?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Shein, 2011-02-18
@Sannis

You are confusing warm with soft. Unit tests fall into the category of the size of the object under test—unit tests test a single module (class or method), integration tests test the interfacing of multiple modules, and system tests test the entire system from top to bottom.
Regression tests are tests that help detect (and prevent) re-breaking of functionality. Those. any tests (unit, etc.) not removed after the initial testing of the functionality, but left in the test suite and (most importantly!) run quite often will be regression if they help prevent breaking the existing functionality.

A
Aragats, 2011-02-17
@Aragats

It seems to me that it can, but this is only when it will be necessary to refactor the library, and then check whether the tests that were previously written are executed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question