Главная
Study mode:
on
1
Intro
2
Negative effects of slow tests
3
Expensive things in tests
4
The testing pyramid
5
Avoid persisting data
6
Locations
7
Shared test setup
8
Tests with too much data
9
Tests with wrong data
10
Solution: Inline setup
11
Factories that do too much
12
Compounding factories
13
Minimal factory
14
Extend base with traits
15
Callbacks that create more data
16
Broken data
17
Updating in setup
18
Profiling factories
19
Diagramming
20
Organization
21
Diamond factories
22
Avoid creating extra data
23
Debugging techniques
24
Joel Quenneville
Description:
Discover strategies to optimize your test suite's performance in this RailsConf 2022 talk. Learn how to identify and reduce excessive database calls, profile and fix performance hot spots, and create visual diagrams for better understanding. Explore techniques to write query-resistant code, avoid persisting unnecessary data, and streamline shared test setups. Gain insights into improving factory designs, minimizing data creation, and implementing effective debugging methods. Master the art of balancing the testing pyramid and crafting minimal, extensible factories with traits. Equip yourself with the knowledge to significantly reduce build times and enhance overall test suite efficiency.

Your Test Suite Is Making Too Many Database Calls

Ruby Central
Add to list