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
1
100
My own preferred testing techniques
dgageot
September 26, 2011
Tweet
Share
More Decks by dgageot
See All by dgageot
Docker on Google Cloud Platform
dgageot
0
1.6k
Lightning Talk Mix-IT 2014
dgageot
0
790
CodeStory 2013 "La Selection Finale"
dgageot
0
750
Let's make this test suite run faster! - BeJUG
dgageot
1
500
Finale Code Story
dgageot
1
700
Le facilitateur, un rôle encore méconnu
dgageot
1
190
Mockito. Ecrire des tests unitaires est devenu simple.
dgageot
2
400
Git, la gestion de configuration qui vous veut du bien
dgageot
1
400
Let's make this test suite run faster
dgageot
1
53
Other Decks in Programming
See All in Programming
実践!難読化ガイド
mitchan
0
210
Hono・Prisma・AWSでGeoなAPI開発
nokonoko1203
5
680
Go1.23で入った errorsパッケージの小さなアプデ
kuro_kurorrr
2
390
The Sequel to a Dream of Ruby Parser's Grammar
ydah
1
220
全部見せます! クラシルリワードのSwiftTesting移行プロジェクト
uetyo
0
210
マルチモジュールにおけるテスト最適化
fxwx23
0
210
Ebitengineの1vs1ゲーム WebRTCの活用
ponyo877
0
380
Using Livebook to build and deploy internal tools @ ElixirConf 2024
hugobarauna
0
250
Securify_エンジニア採用資料
3shake
0
100
Regular Expressions, REXML, Automata Learning
makenowjust
0
220
watsonx.ai Dojo #2 生成AIを使ったアプリ開発入門編
oniak3ibm
PRO
0
220
unique パッケージから学ぶ interning と weak reference @ Asakusa.go#3
karamaru
2
810
Featured
See All Featured
Web development in the modern age
philhawksworth
205
10k
Learning to Love Humans: Emotional Interface Design
aarron
270
40k
The Mythical Team-Month
searls
218
43k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
663
120k
Thoughts on Productivity
jonyablonski
66
4.2k
Robots, Beer and Maslow
schacon
PRO
157
8.2k
What’s in a name? Adding method to the madness
productmarketing
PRO
21
3k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
225
22k
Building Flexible Design Systems
yeseniaperezcruz
325
38k
A better future with KSS
kneath
235
17k
Building an army of robots
kneath
302
42k
Principles of Awesome APIs and How to Build Them.
keavy
125
16k
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