V
V
vitaly_742018-08-19 01:10:51
Software testing
vitaly_74, 2018-08-19 01:10:51

How should data be presented when testing?

Good afternoon, I asked myself the question of testing, and in this regard I am completely green, I have not even been born yet. The question is, when testing individual functions, blocks, data is given to the testing function, or the entire application is brought to the required form (filling the application itself with data, and not submitting ready-made data to the input.), Which is better?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimionus, 2018-08-19
@vitaly_74

Depends on the purpose of testing and what we are testing.
If we are testing a single function, then it makes no sense to fill the entire application with data that the function under test does not use. (Unit testing)
And vice versa, it makes no sense to test the processing of a network request error and at the same time slip knowingly correct data (Functional testing)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question