rubbish / cuke4duke-sbt-plugin
- Source
- Commits
- Network (1)
- Issues (0)
- Downloads (2)
- Wiki (1)
- Graphs
-
Branch:
master
Luke Amdor (author)
Sat Nov 14 07:30:18 -0800 2009
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Sun Nov 01 06:57:45 -0800 2009 | |
| |
History.markdown | Sat Nov 14 07:02:19 -0800 2009 | |
| |
License.txt | Wed Nov 04 16:35:43 -0800 2009 | |
| |
README.markdown | Wed Nov 04 18:23:10 -0800 2009 | |
| |
project/ | Sat Nov 14 07:30:18 -0800 2009 | |
| |
src/ | Sat Nov 14 07:27:56 -0800 2009 |
README.markdown
cuke4duke-sbt-plugin
This is a simple-build-tool plugin for running Cucumber features under cuke4duke
Usage
Simply run the features action to run all cucumber features under the features directory. Step definitions go in src/test/scala/. See the cuke4duke wiki page for scala for more information.
The Cuke4Duke trait automatically addes the cuke4duke dependency for you. You may add junit for for asserting in your step definitions.
Setup
Build and publish the cuke4duke-sbt-plugin project
git clone git://github.com/rubbish/cuke4duke-sbt-plugin cd cuke4duke-sbt-plugin sbt update sbt publish-localIn your plugin definition file, add a dependency on cuke4duke-sbt-plugin
i.e. in
project/plugins/Plugins.scalaimport sbt._ class Plugins(info: ProjectInfo) extends PluginDefinition(info) { val cuke4duke = "cuke4duke" % "cuke4duke-sbt-plugin" % "0.1.alpha" }In your project file, mixin the Cuke4Duke trait
i.e., in
project/build/Project.scalaimport sbt._ import cuke4duke.sbt.Cuke4Duke class YourProject(info: ProjectInfo) extends DefaultProject(info) with Cuke4Duke { // .... }Profit!
Future Features
- Cucumber as a TestFramework
- Running a single feature
