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
Why I use Guard
Search
Keith Pitty
May 26, 2016
Programming
0
140
Why I use Guard
Lightning Talk given at Melbourne Ruby Meetup on 25 July, 2016
Keith Pitty
May 26, 2016
Tweet
Share
More Decks by Keith Pitty
See All by Keith Pitty
Succeeding with Remote Retrospectives
keithpitty
0
190
What were they thinking?
keithpitty
0
190
How not to have future developers curse you
keithpitty
1
67
How not to give advice (about Markdown)
keithpitty
0
83
Morphing your Ruby into Civil Tech
keithpitty
0
87
Loving Legacy Code
keithpitty
0
590
Better OO Design in Rails
keithpitty
0
72
Other Decks in Programming
See All in Programming
複数のAWSアカウントから横断で 利用する Lambda Authorizer の作り方
tc3jp
0
140
高セキュリティ・高耐障害性・サブシステム化。そして2億円
tasukulab280
2
460
Boos Performance and Developer Productivity with Jakarta EE 11
ivargrimstad
0
1k
Rails 1.0 のコードで学ぶ find_by* と method_missing の仕組み / Learn how find_by_* and method_missing work in Rails 1.0 code
maimux2x
1
280
保守性を高める AWS CDK のセオリー・ベストプラクティス
yamanashi_ren01
5
600
RailsでCQRS/ESをやってみたきづき
suzukimar
2
1.1k
RecSys2024 参加報告
unonao
1
140
The Clean ArchitectureがWebフロントエンドでしっくりこないのは何故か / Why The Clean Architecture does not fit with Web Frontend
twada
PRO
68
23k
Jakarta EE meets AI
ivargrimstad
0
1.1k
Goで作るChrome Extensions / Fukuoka.go #21
n3xem
2
2.1k
CDKを使ったPagerDuty連携インフラのテンプレート化
shibuya_shogo
0
140
イベントソーシングによってインピーダンスミスマッチから解放された話
tkawae
1
110
Featured
See All Featured
Designing on Purpose - Digital PM Summit 2013
jponch
117
7.1k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
33
2.1k
The World Runs on Bad Software
bkeepers
PRO
67
11k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
30
2.3k
Documentation Writing (for coders)
carmenintech
69
4.7k
[RailsConf 2023] Rails as a piece of cake
palkan
53
5.3k
Testing 201, or: Great Expectations
jmmastey
42
7.3k
A designer walks into a library…
pauljervisheath
205
24k
Facilitating Awesome Meetings
lara
53
6.3k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
115
51k
Optimizing for Happiness
mojombo
377
70k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
233
17k
Transcript
WHY I USE GUARD KEITH PITTY
None
WHY?
None
FAST AUTOMATIC FEEDBACK
FIN!
None
None
OH, OK …
None
HOW?
guard-rspec
REMEMBER AUTOTEST?
GuardFile
guard :rspec, cmd: 'zeus rspec' do watch('spec/spec_helper.rb') { "spec" }
watch(%r{^spec/.+_spec\.rb$}) watch(%r{^app/(.+)\.rb$}) { |m| "spec/ #{m[1]_spec.rb" } # etc. end
guard :rspec, cmd: 'zeus rspec'
None
None
None
< 1 SECOND
None
GuardFile
CURATION
watch('app/views/feeds/facebook/_encoded_content.erb') { "spec/controllers/feeds/facebook_controller_spec.rb" }
WHEN A FILE CHANGES …
AFFECTED TESTS RUN AUTOMATICALLY
None
FOCUS
SPECIFIC TEST
it "does what it should" do, focus: true # expect
something end
None
FIRST 10 FAILED SPECS
guard :rspec, cmd: 'zeus rspec', failed_mode: :focus do # etc.
end
guard-rspec
FAST AUTOMATIC FEEDBACK
None
ALSO …
guard-teaspoon
guard-livereload
guard-bundler
guard-ctags-bundler
AUTOMATION
None
NEXT?
None
guard-rubocop
WHY DO I USE GUARD?
FAST AUTOMATIC FEEDBACK
UNDERSTAND NOW?
None
None
THANK YOU!
@keithpitty