R
R
Russiancold2020-09-27 13:32:48
Software testing
Russiancold, 2020-09-27 13:32:48

How to write integration tests correctly?

Let's say that my service interacts with the database. I'm aware of three options for how to test this interaction:

  • Mock in which I will keep track of which methods I call
  • Some kind of embedded fake that I can interact with as usual and check what happens in it
  • Raise the container with the base and walk into it

In what cases, which option should be preferred?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question