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
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
580
Finale Code Story
dgageot
1
720
Le facilitateur, un rôle encore méconnu
dgageot
1
200
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
72
Other Decks in Programming
See All in Programming
安いハードウェアでVulkan
fadis
1
950
iOS機能開発のAI環境と起きた変化
ryunakayama
0
180
LM Linkで(非力な!)ノートPCでローカルLLM
seosoft
0
460
Xdebug と IDE による デバッグ実行の仕組みを見る / Exploring-How-Debugging-Works-with-Xdebug-and-an-IDE
shin1x1
0
360
車輪の再発明をしよう!PHP で実装して学ぶ、Web サーバーの仕組みと HTTP の正体
h1r0
3
520
PHP でエミュレータを自作して Ubuntu を動かそう
m3m0r7
PRO
2
180
PHPのバージョンアップ時にも役立ったAST(2026年版)
matsuo_atsushi
0
300
今年もTECHSCOREブログを書き続けます!
hiraoku101
0
240
へんな働き方
yusukebe
6
2.9k
夢の無限スパゲッティ製造機 -実装篇- #phpstudy
o0h
PRO
0
200
今こそ押さえておきたい アマゾンウェブサービス(AWS)の データベースの基礎 おもクラ #6版
satoshi256kbyte
1
240
我々はなぜ「層」を分けるのか〜「関心の分離」と「抽象化」で手に入れる変更に強いシンプルな設計〜 #phperkaigi / PHPerKaigi 2026
shogogg
2
910
Featured
See All Featured
Code Review Best Practice
trishagee
74
20k
A better future with KSS
kneath
240
18k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
500
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.3k
Color Theory Basics | Prateek | Gurzu
gurzu
0
290
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
64
54k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.7k
Faster Mobile Websites
deanohume
310
31k
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
220
Discover your Explorer Soul
emna__ayadi
2
1.1k
Thoughts on Productivity
jonyablonski
76
5.1k
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