Overview
Explore automated testing techniques and best practices in this 48-minute conference talk from Devoxx Poland 2019. Dive into practical, code-based examples of unit and integration testing, learning when and how to implement different approaches. Discover strategies for building and testing modularized applications, including the use of mocks, validators, and database interactions. Gain insights on distinguishing between unit and integration tests, implementing conventions, and utilizing builders. Understand the importance of test speed and its impact on development efficiency. Walk away with actionable knowledge to improve your testing practices and confidently answer the common interview question, "How do you test your code?"
Syllabus
Intro
Unit testing
Validator
Why use mocks
What is a module
What is a unit
Interaction between modules
Database
Integration tests
API tests
Unit tests
Micro tests
Implement
Conventions
Builders
Builders instead of building
Unit vs integration tests
Testing without assertions
Speed of development
Green team
Taught by
Devoxx