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
270
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
300
OpenBSD and Ruby
jmettraux
1
550
Ruby and FFI
jmettraux
0
300
headless in Hiroshima.rb #061
jmettraux
0
260
Ruby methods in ect - Hiroshima.rb #058
jmettraux
0
940
flor - hubristic interpreter - RubyKaigi 2017
jmettraux
1
1.1k
deli @ Hiroshima.rb #057
jmettraux
0
900
suhi215 yahoo proxy in python
jmettraux
0
1.1k
chruby
jmettraux
0
490
Other Decks in Programming
See All in Programming
1BRC--Nerd Sniping the Java Community
gunnarmorling
0
340
Git Lint
bkuhlmann
4
750
Site Reliability Engineering for GMO
pyama86
7
1k
サイコロで理解する統計的仮説検定の考え方
tatamiya
4
900
Java 22 Overview
kishida
1
180
From Spring Boot 2 to Spring Boot 3 with Java 22 and Jakarta EE
ivargrimstad
0
1.1k
Semantic search with Django and pgvector
pauloxnet
0
240
PHPはいつから死んでいるかの調査
chiroruxx
1
390
Goのmultiple errorsについて (2024年4月版)
syumai
3
590
今、知っておきたい! 生成AIエージェントの世界
elith
3
350
Ruby Pattern Matching
bkuhlmann
0
920
if constexpr文はテンプレート世界のラムダ式である
faithandbrave
3
640
Featured
See All Featured
GraphQLの誤解/rethinking-graphql
sonatard
50
9.2k
Happy Clients
brianwarren
92
6.4k
Teambox: Starting and Learning
jrom
128
8.4k
KATA
mclloyd
15
12k
Building a Scalable Design System with Sketch
lauravandoore
456
32k
Git: the NoSQL Database
bkeepers
PRO
422
63k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
227
16k
A better future with KSS
kneath
231
16k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
116
18k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
2
1.3k
Web Components: a chance to create the future
zenorocha
305
41k
Unsuck your backbone
ammeep
663
57k
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