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
My own preferred testing techniques
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
dgageot
September 26, 2011
Programming
120
1
Share
My own preferred testing techniques
dgageot
September 26, 2011
More Decks by dgageot
See All by dgageot
Docker on Google Cloud Platform
dgageot
0
1.7k
Lightning Talk Mix-IT 2014
dgageot
0
810
CodeStory 2013 "La Selection Finale"
dgageot
0
770
Let's make this test suite run faster! - BeJUG
dgageot
1
590
Finale Code Story
dgageot
1
720
Le facilitateur, un rôle encore méconnu
dgageot
1
210
Mockito. Ecrire des tests unitaires est devenu simple.
dgageot
2
440
Git, la gestion de configuration qui vous veut du bien
dgageot
1
470
Let's make this test suite run faster
dgageot
1
76
Other Decks in Programming
See All in Programming
サーバーレスで作る、動画データ管理基盤
oyasumipants
0
240
Swiftのレキシカルスコープ管理
kntkymt
0
190
プロパティの順序で型推論が壊れる!? TypeScript6.0の修正からContext-Sensitivityの仕組みを追う
bicstone
2
980
tsserverとは何だったのか、これからどうなるのか
nowaki28
1
360
誰も頼んでない機能を出荷した話
zekutax
0
120
Copilot CLI の継戦能力を高める コンテキスト管理
nozomutu
1
910
サプライチェーン攻撃対策「層を重ねて落ちない壁」を10日間で組み上げた話 #TechLeadConf2026
kashewnuts
1
360
運用エージェントは "作る" から "育てる" へ - 記憶と自己進化の3層設計パターン / self-evolving-agents-three-layer-agent-design
gawa
10
1.2k
My daily life on Ruby
a_matsuda
3
440
デフォルト運用のCodeRabbit、1年で何が変わったか / How CodeRabbit Changed Our Code Review in 1 Year
bake0937
1
100
Agentic AI & UI: Arcitecture, HITL, Emerging Standards
manfredsteyer
PRO
0
130
AI駆動開発勉強会 広島支部 第一回勉強会 AI駆動開発概要とワークショップ
hayatoshimiu
0
360
Featured
See All Featured
Making Projects Easy
brettharned
120
6.6k
VelocityConf: Rendering Performance Case Studies
addyosmani
333
25k
How to Talk to Developers About Accessibility
jct
2
200
Joys of Absence: A Defence of Solitary Play
codingconduct
1
370
Unsuck your backbone
ammeep
672
58k
Principles of Awesome APIs and How to Build Them.
keavy
128
17k
What's in a price? How to price your products and services
michaelherold
247
13k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
170
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
1
550
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.2k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
55k
Scaling GitHub
holman
464
140k
Transcript
My own preferred testing techniques Paris Java User Group
www.parisjug.org Copyright(c) 2010 Paris JUG, Licence CC-Creatives Commons 2.0 France
- Paternité - Pas d’utilisation commerciale - Partage des Conditions à l’identique
Frameworks My own preferred testing techniques JUnit 4+ More expressive
tests More robust Faster Plugins
Personal taste only
Plugins
MoreUnit, a unit test friendly Eclipse http://moreunit.sourceforge.net/ See what’s tested
MoreUnit http://moreunit.sourceforge.net/ Jump to Test
MoreUnit http://moreunit.sourceforge.net/ Run current test Refactoring friendly (move, rename, delete)
http://moreunit.sourceforge.net/ Demo
Continuous testing Runs all impacted tests after each code change
Eclipse and Intellij OpenSource, Free http://infinitest.org
Demo
Continuous testing JUnit Max Runs all impacted tests after each
code change Try to run tests failing most often, first Eclipse and Intellij OpenSource, Free Developed by Kent Beck http://www.junitmax.com/
Frameworks
Hamcrest More readable assertions
Hamcrest More samples + easy to write custom matchers
So
FEST-Assert More readable assertions Demo
FEST-Assert More readable assertions OpenSource http://fest.easytesting.org/
JUnit 4.8.2 Worst logo ever!
Do you known/use all the features? @Test @Before, @After, @BeforeClass,
@AfterClass @RunWith @Theory, @DataPoint(s) @Rule @SuiteClasses @Category (beta) JUnit 4.8.2 Demo
@Categories and @SuiteClasses JUnit 4.8.2
@Categories and @SuiteClasses JUnit 4.8.2
@Categories and @SuiteClasses JUnit 4.8.2 Cumbersome Need not forget to
add each test manually in all suites Who doesn’t run all the tests every build? :-)
@Rule Take a look at the code of MethodRule, ExternalResource,
TestWatchman, Verifier... Write your own rules if they make the tests easier to read. JUnit 4.8.2
Thank you Q/A
www.parisjug.org Copyright(c) 2010 Paris JUG, Licence CC-Creatives Commons 2.0 France
- Paternité - Pas d’utilisation commerciale - Partage des Conditions à l’identique