Code Monkey home page Code Monkey logo

lein-cucumber's Introduction

Build Status

lein-cucumber

This is a leiningen plugin for use with cucumber-jvm.

Usage

  1. Add [lein-cucumber "1.0.2"] to :plugins in your project.clj
  2. Run lein deps to fetch all dependencies.
  3. Run all Cucumber features with lein cucumber

Please note

lein-cucumber requires Leiningen 2.

Configuration

Feature paths are resolved in the following order:

  1. Command line options (e.g. lein cucumber my-features) override all other settings.
  2. If no command line options for feature paths are given, the :cucumber-feature-paths parameter in your project.clj will be used (e.g. :cucumber-feature-paths ["test/features/"]).
  3. If neither command line options nor a parameter is used, lein-cucumber looks for features in the features/ directory.

Glue paths are resolved similarily:

  1. Command line options (e.g. lein cucumber --glue somewhere/my_stepdefs) override all other settings.
  2. If no command line options for glue paths are given, step definitions will be loaded from step_definitions/ directories inside your feature directories.

Other settings

The following settings are hard-coded into the plugin:

  • A summary report will be printed to the console.
  • The complete report (formatted with CucumberPrettyFormatter) will be written to test-reports/cucumber.out inside your project's target directory (usually target/).
  • Leiningen will exit with the exit status of the cucumber-jvm runtime.

See https://github.com/nilswloka/cucumber-jvm/tree/new-clojure-example/examples/clojure_cukes for an example project.

Note

If you like lein-cucumber, consider endorsing me at coderwall:

endorse

Unlicense

Written by Nils Wloka, 2012. For licensing information, see UNLICENSE.

Contributions by Robert P. Levy, Michael van Acken, Jeroen van Dijk, Ben Poweski and shaolang. Please have a look at http://unlicense.org if you plan to contribute.

lein-cucumber's People

Contributors

bpoweski avatar jeroenvandijk avatar mva avatar nilswloka avatar rplevy-draker avatar shaolang avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.