Valentin Kononov
Full Stack Developer, Speaker
By Valentin Kononov
Having adequate test coverage means a lot for the good API. But what can make the whole life pathetic is endless mocking of data and functions for integration tests. Every time you've changed the code you need to fix the mock. After several iterations the correct thought is - what's went wrong? Alternative approach is e2e tests for the API. Which require only minimal mocks and data preparation. The rest - pure code of your API. Change the code - e2e test remains the same. This talk is about my experience of switching from integration tests to e2e tests for the API, proc and cons and how I started to feel happy about tests.