Concordion
Concordion is a specification by example framework originally developed by David Peterson, and now maintained by a team of contributors, led by Nigel Charman.
Inspired by the Fit Framework, David states the following aims were behind Concordion:
- Improved readability of documents
- More "opinionated"
- Easier to use
How it works
The Markdown, HTML or Excel files are typically stored with the source code, which has the benefit that they can be under the same version control system as the rest of the code ensuring the specification and tests are branched and merged along with the main source code.
Concordion includes a flexible extension mechanism for adding functionality, for example implementing new commands, listening to events, or modifying the output documentation. By providing functionality such as embedding screenshots, storyboards or logging output, extensions provide confidence in what the test is doing without locking the test into a specific implementation.
Concordion enriches agile processes and has been successfully applied in industrial context.
Example
Markdown format specification
Before instrumentation | The greeting for World is Hello World! |
After instrumentation | The greeting for is |
HTML format specification
The fixture code
; HelloWorldTest.javapackage org.wikipedia;
import org.concordion.integration.junit4.ConcordionRunner;
import org.junit.runner.RunWith;
@RunWith
public class HelloWorldTest
Integrated Development Environment Support
The Concordion Support plugin for the IntelliJ IDEA Integrated development environment simplifies development of fixtures and specifications with features including autocompletion, navigation between spec and test fixture, renaming, running tests, inspections and quick fixes.The Eclipse Concordion plugin is much more limited and hasn't been updated since 2011. The original author has stopped using Concordion and Eclipse and is unable to accommodate the necessary time to extend and maintain the plugin.