/
GreenPepper 4.2: Supporting Markdown Specifications

GreenPepper 4.2: Supporting Markdown Specifications

Hi there,

It's been quite some time now. This doesn't mean that GreenPepper were not evolving. While the version 4.1.x was mostly focused on the Maven Plugin, here comes the 4.2 version with the concept of SpecificationDialect.

GreenPepper reads Markdown (with some help though)

You can write your specification in Markdown with GreenPepper 4.2. That is convenient if you don't have a Confluence Wiki available and/or you want to commit your specifications along with your code.

See how to in the documentation.


# Calculator Example

| Begin info |
|------------|

This main purpose of this example is to show you :

* How to handle business rules using the **Rule For** Interpreter
* How to use the keyword **error** to handle exceptions

The simplicity of the Calculator example allows to avoid confusion between the 
system context and the specific behavior of GreenPepper Software.

Another particularity of this example is that we do not need to write a custom 
fixture : the **Calculator** class will be use directly.

| End info |
|----------|


| import |
|--------|
| com.greenpepper.samples.application.calculator |


| Rule for | calculator |
| x | y | sum? | product? | quotient? |
|---|---|------|----------|-----------|
| 0	| 0	| 0	   | 0        | error     |
| 1	| 0	| 1	   | 0        | error     |
| 0	| 1	| 1	   | 0        | 0         |
| 1	| 1	| 2	   | 1        | 1         |
| 10| 2 | 12   | 20       | 5         | 

Related content

Writing your specification in MarkDown
Writing your specification in MarkDown
More like this
Java extensions - Markdown Dialect
Java extensions - Markdown Dialect
More like this
Implementing a Dialect
Implementing a Dialect
More like this
4.0 Changelog
4.0 Changelog
More like this
Java extensions - Office Documents Dialect
Java extensions - Office Documents Dialect
More like this
GreenPepper Maven Plugin - Write Specification in Office Documents
GreenPepper Maven Plugin - Write Specification in Office Documents
More like this