E
E
EvgMul2019-10-07 11:51:54
PHP
EvgMul, 2019-10-07 11:51:54

What literature would you recommend for testing?

Hello. I realized that I do not have a clear structured understanding of how autotests work, what types of tests there are, how they differ (acceptance, functional, unit, etc.). How to write them correctly. Recommend literature on this topic. It will be a big plus if there are examples in there, even better if the examples are on PHPUnit or Codeception, but this is not important.
Thanks in advance to all who respond.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Daria Motorina, 2019-10-07
@EvgMul

Kent Beck's TDD - helps to understand where the popular testing framework architecture came from ( link ) - read, helped me in part.
xUnit test patterns - I haven't read it, but everyone advises - it also explains the principles of writing tests without a clear reference to technology ( link ).
According to the difference in testing approaches, there is a testing pyramid, but in practice it is not always clear to me where the boundaries are - acceptance and UI tests are focused on use cases - i.e. on the path - in what sequence the user goes through the feature and what result he expects at each step (enters the page, fills in the data, waits for a response; the client program receives a token, sends a request, waits for a response), and unit tests are focused on checking the code as isolated elements - i.e. testing occurs separately from the overall process in which this code is used, so that the problem can be localized with maximum accuracy.
I studied PHPUnit only according to the documentation, I just went through all the examples, I consider it an acceptable study option. It is better to understand PHPUnit well first, and then learn Codeception. You can learn how to mock and stab, already on specific tasks, as needed.

A
Alexander, 2019-10-07
@bree7e

As a theoretical preparation, I recommend the book "Testing dot com"

G
gaparchi, 2019-10-17
@gaparchi

  • Extreme Programming. Development through TDD testing. Beck K.
  • Gerard Meszaros. "xUnit Test Patterns: Test Code Refactoring".
  • The Art of Offline Testing with C# Examples. Roy Osherove.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question