Topics
- Introduction
- Two minute introduction
- GettingStarted
- Obtaining Instinct via Maven
- Creating specifications
- State and behavioural expectations
- Creating and using specification actors
- Integrating with JUnit
- Integrating with Ant
- Integrating with Clover
- Terminology
Introduction
Instinct is a Behaviour Driven Development (BDD) framework for Java. Inspired by RSpec, Instinct provides flexible annotation of contexts, specifications and actors; automatic creation of test doubles and test subjects; a state and behaviour expectation API; JUnit test runner integration; Ant support and an IntelliJ IDEA plugin.
Instinct is primarily designed to support developers as they are developing code, as an integral part of the act of programming. Instinct specifications also serve as a means of critiquing production code, in a similar manner to more traditional testing frameworks such as JUnit or TestNG.
So how do I get started?
- Download it
- Use it!
- Contribute?
Can I read more?
- Better Testing Through Behaviour, Tom Adams, OSDC 2007 (slides).
- Introducing Behaviour-Driven Development, Dan North.
- A New Look at Test Driven Development, Dave Astels.
- Behavior Driven Development: An Evolution in Testing, Bob Cotton, Agile Denver, April 2007.
See/hear people talk about it?
- Behaviour Driven Development in Ruby with RSpec, Dave Astels & David Chelimsky, RubyConf 2007 (slides).
- Dave Astel's Beyond Test Driven Development Google Talk
- Dave Astels and Steven Baker on RSpec and Behavior-Driven Development at InfoQ
Find more information?
Colophon
This user's guide gives an introduction to Instinct. The examples for this tutorial come from the example project (also available from the downloads page), full details and examples of all Instinct features are available there. The tutorial assumes you have downloaded Instinct. Details on terminology used are available on the terminology page.