If you aren't familiar with BDD then this blog isn't for you. If you've used RSpec or you have read a little about BDD and you want to kick the tires with a very simple BDD implementation in Groovy (aka easyb) and you want to use maven 2, then maybe you will get a tiny bit of use from this.
Here is a fully functional pom file that works with easyb 0.8 and maven-easyb-plugin 0.8.
The pom file xmlReport configuration has a default value which is:
${project.build.directory}/easyb/report.xml
If you change it (as per the maven-easyb-plugin documentation) be sure to change the the storyReport which is being renamed to xmlReport to help avoid confusion:
${project.build.directory}/easyb-report.xml
So, to recap, if you change the value in the pom.xml file you MUST also pass in the storyReport (soon to be renamed to xmlReport) parameter to maven and they have to match.
Here is a fully functional pom file that works with easyb 0.8 and maven-easyb-plugin 0.8.
<project>
<modelversion>4.0.0</modelversion>
<groupid>com.trial.easyb</groupid>
<artifactid>easyb-trial</artifactid>
<version>0.1</version>
<dependencies>
<dependency>
<groupid>org.easyb</groupid>
<artifactid>easyb</artifactid>
<version>0.8</version>
</dependency>
<dependency>
<groupid>junit</groupid>
<artifactid>junit</artifactid>
<version>4.4</version>
</dependency>
</dependencies>
<repositories>
<repository>
<id>easyb</id>
<url>http://www.easyb.org/repo/</url>
</repository>
</repositories>
<pluginrepositories>
<pluginrepository>
<id>easyb</id>
<url>http://www.easyb.org/repo/</url>
</pluginrepository>
</pluginrepositories>
<build>
<plugins>
<plugin>
<groupid>org.easyb</groupid>
<artifactid>maven-easyb-plugin</artifactid>
<version>0.8</version>
<executions>
<execution>
<goals>
<goal>test</goal>
<goal>storyReport</goal>
</goals>
</execution>
</executions>
<configuration>
<easybtestdirectory>${basedir}/src/test/stories</easybtestdirectory>
<storyreport>${project.build.directory}/easyb-stories.txt</storyreport>
<xmlreport>${project.build.directory}/easyb/report.xml</xmlreport>
</configuration>
</plugin>
</plugins>
</build>
</project>
Gotchas (at least it got me). For the maven-easyb-plugin easyb:storyReport goal:
The pom file xmlReport configuration has a default value which is:
If you change it (as per the maven-easyb-plugin documentation) be sure to change the the storyReport which is being renamed to xmlReport to help avoid confusion:
So, to recap, if you change the value in the pom.xml file you MUST also pass in the storyReport (soon to be renamed to xmlReport) parameter to maven and they have to match.
0 TrackBacks
Listed below are links to blogs that reference this entry: Configuring easyb with maven 2 (maven-easyb-plugin).
TrackBack URL for this entry: http://www.nearinfinity.com/mt/mt-tb.cgi/401



Leave a comment