Usage

Basic Configuration

  <build>
    <plugins>
      <plugin>
        <groupId>org.easyb</groupId>
        <artifactId>maven-easyb-plugin</artifactId>
        <version>0.9.7-1</version>
        <executions>
          <execution>
            <goals>
              <goal>test</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

Customized Directories

The above example runs easyb with common defaults for test directories and report paths. However, all of these defaults can be overriden using plugin configuration as shown below:

  <build>
    <plugins>
      <plugin>
        <groupId>org.easyb</groupId>
        <artifactId>maven-easyb-plugin</artifactId>
        <version>0.9.7-1</version>
        <executions>
          <execution>
            <goals>
              <goal>test</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>

Creating HTML story reports

  <build>
    <plugins>
      <plugin>
        <groupId>org.easyb</groupId>
        <artifactId>maven-easyb-plugin</artifactId>
        <version>0.9.7-1</version>
        <executions>
          <execution>
            <goals>
              <goal>test</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <storyType>html</storyType>
          <storyReport>${project.build.directory}/easyb/stories.html</storyReport>
        </configuration>
      </plugin>
    </plugins>
  </build>

Running stories with specific tags

Tags can be activated via the 'easyb.tags' command line flag (e.g. "-Deasyb.tags='runme,metoo'") or by configuring them in the pom.xml:

  <build>
    <plugins>
      <plugin>
        <groupId>org.easyb</groupId>
        <artifactId>maven-easyb-plugin</artifactId>
        <version>0.9.7-1</version>
        <executions>
          <execution>
            <goals>
              <goal>test</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
            <tags>runme,metoo</tags>
        </configuration>
      </plugin>
    </plugins>
  </build>