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
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
480
Let's make this test suite run faster
dgageot
1
77
Other Decks in Programming
See All in Programming
Copilot CLI の継戦能力を高める コンテキスト管理
nozomutu
1
1.1k
Migrations : C'est une question d'hygiène !
vinceamstoutz
0
2.4k
脅威をエンジニアリングの糧にして――現場編 / Turning Threats into Engineering Fuel — Field Edition
nrslib
0
200
自動レビューエンジンの実装と運用 ~レビューのない世界へ~
kurukuru1999
2
280
Stage 3 Decorators でできること / できないこと / TSKaigi 2026
susisu
1
1.2k
ユニットテストの先へ:テスト技法で要求・仕様を整理するJava開発実践 / Beyond_Unit_Testing_Practical_Java_Development_Techniques_for_Organizing_Requirements_and_Specifications
shimashima35
0
270
AI時代になぜ書くのか
mutsumix
0
470
分析エージェント精度向上における データアナリストの役割
oura_shoya
0
130
AlarmKitで明後日起きれるアラームアプリを作る
trickart
0
160
タクシーアプリ『GO』の バックエンド開発のおける AI利活用と若者のすべて
pyama86
3
1.7k
New "Type" system on PicoRuby
pocke
1
240
TSKaigi2026-静的解析への投資がAI時代のコード品質を支える ── カスタムESLintルールの設計と運用
hayatokudou
6
1.2k
Featured
See All Featured
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2k
Large-scale JavaScript Application Architecture
addyosmani
515
110k
Amusing Abliteration
ianozsvald
1
180
Believing is Seeing
oripsolob
1
130
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.2k
Everyday Curiosity
cassininazir
0
210
How GitHub (no longer) Works
holman
316
150k
Skip the Path - Find Your Career Trail
mkilby
1
130
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
390
Game over? The fight for quality and originality in the time of robots
wayneb77
1
180
The Language of Interfaces
destraynor
162
26k
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
130
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