Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
tests and the database
Search
John Mettraux
November 29, 2018
Programming
0
290
tests and the database
making some tests faster by starting from test database dumps
John Mettraux
November 29, 2018
Tweet
Share
More Decks by John Mettraux
See All by John Mettraux
hiroshima.rb #70 pomodoro
jmettraux
0
350
OpenBSD and Ruby
jmettraux
1
620
Ruby and FFI
jmettraux
0
340
headless in Hiroshima.rb #061
jmettraux
0
300
Ruby methods in ect - Hiroshima.rb #058
jmettraux
0
1.4k
flor - hubristic interpreter - RubyKaigi 2017
jmettraux
1
1.6k
deli @ Hiroshima.rb #057
jmettraux
0
1.4k
suhi215 yahoo proxy in python
jmettraux
0
1.5k
chruby
jmettraux
0
540
Other Decks in Programming
See All in Programming
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
0
120
いまから追い上げる、Jetpack Compose トレーニング
nyafunta9858
0
600
オートマトン学習しろ / Do automata learning
makenowjust
3
130
私のEbitengineの第一歩
qt_luigi
0
450
What is Parser
yui_knk
9
4.2k
Some more adventure of Happy Eyeballs
coe401_
2
190
Jakarta EE meets AI
ivargrimstad
0
390
Pythonで改めて考える「クラス(class)」の使いどころ
os1ma
3
830
API Platform for Laravel
dunglas
1
460
Kotlin 2.0 and Beyond
antonarhipov
2
150
状態管理ライブラリZustandの導入から運用まで
k1tikurisu
3
470
Scala におけるコンパイラエラーとの付き合い方
chencmd
2
430
Featured
See All Featured
A Tale of Four Properties
chriscoyier
155
22k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
23
1.7k
For a Future-Friendly Web
brad_frost
174
9.3k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
36
1.7k
The Art of Programming - Codeland 2020
erikaheidi
48
13k
Principles of Awesome APIs and How to Build Them.
keavy
125
16k
Rails Girls Zürich Keynote
gr2m
93
13k
How GitHub Uses GitHub to Build GitHub
holman
472
290k
[RailsConf 2023] Rails as a piece of cake
palkan
48
4.6k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
158
15k
Web development in the modern age
philhawksworth
205
10k
Code Reviewing Like a Champion
maltzj
517
39k
Transcript
None
tests and the database
hiro shima .rb #67 • Sinatra • Sequel • JRuby
hiro shima .rb #67
hiro shima .rb #67
hiro shima .rb #67 took 20s.
hiro shima .rb #67 took 20s.
hiro shima .rb #67 bxs spec/functional/models/sg_mandate_spec.rb:210 bxs spec/functional/models/sg_mandate_spec.rb -e fubar
bxs spec/functional/models/sg_mandate_spec.rb bxs spec/functional/models/ alias bxs=“bundle exec rspec” bxs
hiro shima .rb #67 bxs spec/functional/models/sg_mandate_spec.rb:210 bxs spec/functional/models/sg_mandate_spec.rb -e fubar
bxs spec/functional/models/sg_mandate_spec.rb bxs spec/functional/models/ alias bxs=“bundle exec rspec” bxs 30s to 2m 20m to 30m
hiro shima .rb #67 bxs spec/functional/models/sg_mandate_spec.rb:210 bxs spec/functional/models/sg_mandate_spec.rb -e fubar
bxs spec/functional/models/sg_mandate_spec.rb bxs spec/functional/models/ alias bxs=“bundle exec rspec” bxs focus control
hiro shima .rb #67 bxs spec/functional/models/sg_mandate_spec.rb:210 bxs spec/functional/models/sg_mandate_spec.rb -e fubar
bxs spec/functional/models/sg_mandate_spec.rb bxs spec/functional/models/ alias bxs=“bundle exec rspec” bxs focus control
hiro shima .rb #67 bxs spec/functional/models/sg_mandate_spec.rb:210 bxs spec/functional/models/sg_mandate_spec.rb -e fubar
bxs spec/functional/models/sg_mandate_spec.rb bxs spec/functional/models/ alias bxs=“bundle exec rspec” bxs focus control unit (no db access) functional (no browser) integration (selenium)
hiro shima .rb #67
hiro shima .rb #67
hiro shima .rb #67 what if we had a dump
of the test database, right after load_integration_fixtures() ?
hiro shima .rb #67 what if we had a dump
of the test database, right after load_integration_fixtures() ?
hiro shima .rb #67 what if we had a dump
of the test database, right after load_integration_fixtures() ?
hiro shima .rb #67 what if we had a dump
of the test database, right after load_integration_fixtures() ?
hiro shima .rb #67 what if we had a dump
of the test database, right after load_integration_fixtures() ? dump: 0.2s dump: 61M load: 1.8s
hiro shima .rb #67
hiro shima .rb #67
hiro shima .rb #67
hiro shima .rb #67
hiro shima .rb #67 still 20s cost remains
hiro shima .rb #67 still 20s cost remains
hiro shima .rb #67 still 20s cost remains
hiro shima .rb #67 still 20s cost remains
hiro shima .rb #67 still 20s cost remains
hiro shima .rb #67
hiro shima .rb #67
hiro shima .rb #67 the end