rubbish / cuke4duke-sbt-plugin

A simple-build-tool plugin for running Cuke4Duke features

This URL has Read+Write access

name age message
file .gitignore Sun Nov 01 06:57:45 -0800 2009 Ignoring more output [Luke Amdor]
file History.markdown Sat Nov 14 07:02:19 -0800 2009 Added history for v0.1.8 [Luke Amdor]
file License.txt Wed Nov 04 16:35:43 -0800 2009 Added License and the beginnings of a README file [Luke Amdor]
file README.markdown Wed Nov 04 18:23:10 -0800 2009 Added note on dependencies added automatically [Luke Amdor]
directory project/ Sat Nov 14 07:30:18 -0800 2009 SNAPSHOT version bump [Luke Amdor]
directory src/ Sat Nov 14 07:27:56 -0800 2009 Updated to cuke4duke 0.1.9 and cucumber 0.4.4 [Luke Amdor]
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

  1. 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-local
    
  2. In your plugin definition file, add a dependency on cuke4duke-sbt-plugin

    i.e. in project/plugins/Plugins.scala

    import sbt._
    class Plugins(info: ProjectInfo) extends PluginDefinition(info) {
      val cuke4duke = "cuke4duke" % "cuke4duke-sbt-plugin" % "0.1.alpha"
    }
    
  3. In your project file, mixin the Cuke4Duke trait

    i.e., in project/build/Project.scala

     import sbt._
     import cuke4duke.sbt.Cuke4Duke
     class YourProject(info: ProjectInfo) extends DefaultProject(info) with Cuke4Duke {
       // ....
     }
    
  4. Profit!

Future Features

  • Cucumber as a TestFramework
  • Running a single feature