Professional Documents
Culture Documents
Ilja Preuß
preuss@disy.net
disy Informationssysteme GmbH, Karlsruhe, Germany
Agile 2008
Ilja Preuß, disy Informationssysteme GmbH JDemo - Lightweight Exploratory Developer Testing
Ilja Preuß, disy Informationssysteme GmbH JDemo - Lightweight Exploratory Developer Testing
Motivation
Introduction to JDemo
Demonstration
Experiences
Demos as Tests
More Features
Summary and Advice
Ilja Preuß, disy Informationssysteme GmbH JDemo - Lightweight Exploratory Developer Testing
Motivation
Ilja Preuß, disy Informationssysteme GmbH JDemo - Lightweight Exploratory Developer Testing
Motivation
Ilja Preuß, disy Informationssysteme GmbH JDemo - Lightweight Exploratory Developer Testing
Motivation
Ilja Preuß, disy Informationssysteme GmbH JDemo - Lightweight Exploratory Developer Testing
Motivation
motivator
Ilja Preuß, disy Informationssysteme GmbH JDemo - Lightweight Exploratory Developer Testing
Motivation
problem:
Ilja Preuß, disy Informationssysteme GmbH JDemo - Lightweight Exploratory Developer Testing
Motivation
known solutions:
“interactive” unit tests → hack, not permanent, brittle
write main methods → lots of boiler plate code, unorganized
Ilja Preuß, disy Informationssysteme GmbH JDemo - Lightweight Exploratory Developer Testing
Questions:
Ilja Preuß, disy Informationssysteme GmbH JDemo - Lightweight Exploratory Developer Testing
JUnit vs. JDemo
JUnit JDemo
TestCase . . . DemoCase
test . . . demo . . .
Ilja Preuß, disy Informationssysteme GmbH JDemo - Lightweight Exploratory Developer Testing
JUnit vs. JDemo
JUnit JDemo
arrange arrange
show
act explore
assert
Ilja Preuß, disy Informationssysteme GmbH JDemo - Lightweight Exploratory Developer Testing
Let’s try it!
Ilja Preuß, disy Informationssysteme GmbH JDemo - Lightweight Exploratory Developer Testing
Ilja Preuß, disy Informationssysteme GmbH JDemo - Lightweight Exploratory Developer Testing
Experience
writing demos
increases flow
fosters decoupling and reusability
creates executable documentation
gives feedback on usability
Ilja Preuß, disy Informationssysteme GmbH JDemo - Lightweight Exploratory Developer Testing
Case Study
27 demos
Ilja Preuß, disy Informationssysteme GmbH JDemo - Lightweight Exploratory Developer Testing
Case Study
startup/arrangement times:
application: 45s
demo: 4s
Ilja Preuß, disy Informationssysteme GmbH JDemo - Lightweight Exploratory Developer Testing
Case Study
Ilja Preuß, disy Informationssysteme GmbH JDemo - Lightweight Exploratory Developer Testing
Demos as Smoketests
problem:
Ilja Preuß, disy Informationssysteme GmbH JDemo - Lightweight Exploratory Developer Testing
Demos as Smoketests
idea:
Ilja Preuß, disy Informationssysteme GmbH JDemo - Lightweight Exploratory Developer Testing
More Features
setup / teardown
suites of demos
@Demo annotation
specification of timeout
show source code
run with different look and feels
Ilja Preuß, disy Informationssysteme GmbH JDemo - Lightweight Exploratory Developer Testing
Even More Features
Ilja Preuß, disy Informationssysteme GmbH JDemo - Lightweight Exploratory Developer Testing
Open Questions
Ilja Preuß, disy Informationssysteme GmbH JDemo - Lightweight Exploratory Developer Testing
Summary
Ilja Preuß, disy Informationssysteme GmbH JDemo - Lightweight Exploratory Developer Testing
Some Small Advice
Ilja Preuß, disy Informationssysteme GmbH JDemo - Lightweight Exploratory Developer Testing
Thanks!
preuss@disy.net
www.jdemo.de
Ilja Preuß, disy Informationssysteme GmbH JDemo - Lightweight Exploratory Developer Testing