Skip to content
This repository has been archived by the owner on May 21, 2019. It is now read-only.

Commit

Permalink
Add empty step definition and use of usage formatter that demonatrate…
Browse files Browse the repository at this point in the history
…s that it doesn't work until we inherit from AbstractStepDefinition
  • Loading branch information
aslakhellesoy committed Sep 29, 2009
1 parent 938c179 commit 92fb52a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/scala/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@
<cucumberArgs>
<cucumberArg>--color</cucumberArg>
<cucumberArg>--verbose</cucumberArg>
<cucumberArg>--format</cucumberArg>
<cucumberArg>pretty</cucumberArg>
<cucumberArg>--format</cucumberArg>
<cucumberArg>usage</cucumberArg>
<cucumberArg>--out</cucumberArg>
<cucumberArg>target/usage.txt</cucumberArg>
<cucumberArg>--require</cucumberArg>
<cucumberArg>${basedir}/target/test-classes</cucumberArg>
</cucumberArgs>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,10 @@ class StackStepDefinitions extends ScalaDsl {
Then("""the size should be (\d)""") { i:Int =>
assertEquals(i, stack.size)
}

Then("""this should never be run, and it should show up in target/usage.txt""") {
// And to make that work, ScalaStepDefinition should inherit from AbstractStepDefinition.
// Remember to invoke register() at the end of the constructor.
assertEquals(1, 2)
}
}

0 comments on commit 92fb52a

Please sign in to comment.