Code Monkey home page Code Monkey logo

aloe's Introduction

Aloe

Build status Build status Coverage PyPI

A Gherkin runner for Python based on Nose and Lettuce.

Install:

pip install aloe

Read the documentation.

Invocation

Pass the --with-gherkin argument to nosetests to run your BDD tests. You may also pass the --no-ignore-python argument to run other nose discovered tests as well.

The aloe command line tool is a wrapper for the nose runner, configured to only run Gherkin tests. As such, the invocation is the same as nose, but the following parameters are added:

  • -n N[,N...] - only run the specified scenarios (by number, 1-based) in each feature. Makes sense when only specifying one feature to run, for example

    aloe features/calculator.feature -n 1

  • --test-class - override the class used as a base for each feature.

  • --no-ignore-python - run Python tests as well as Gherkin.

Migrating from Lettuce

Aloe, started as a fork of Lettuce, tries to be compatible where it makes sense. However, there are following incompatible changes:

  • each_scenario and each_background callbacks are removed. Use each_example.
  • -s option for running particular scenarios is renamed to -n.
  • Django-related functionality, including the harvest command, is moved to a separate project, Aloe-Django.
  • terrain.py has no particular significance. It will be imported but only if it exists at the same directory with the other step definition files, and not above it.
  • Scenario outlines must be declared with "Scenario Outline", and scenarios without examples must use "Scenario" - Lettuce allowed using either.
  • By default, the steps run are output as dots, corresponding to Lettuce verbosity 1. To get colored output with steps printed as they run, use -v 3.

License

Aloe - Cucumber runner for Python based on Lettuce and Nose

Copyright (C) <2015> Alexey Kotlyarov [email protected]

Copyright (C) <2014-2015> Danielle Madeley [email protected]

Copyright (C) <2010-2012> Gabriel Falcão [email protected]

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

aloe's People

Contributors

koterpillar avatar gabrielfalcao avatar danni avatar rickycook avatar adaschevici avatar andydeany avatar chris-morgan avatar fsouza avatar apieum avatar mitgr81 avatar benoitbryon avatar wpjunior avatar systemparadox avatar hltbra avatar pokutnik avatar kevinastone avatar medwards avatar pshomov avatar davidsulc avatar algernon avatar jensrantil avatar kyleconroy avatar akaihola avatar nikolas avatar tswicegood avatar rbu avatar rtkrruvinskiy avatar michelts avatar bkabrda avatar alonisser avatar

Watchers

James Cloos avatar ZaidAlissa 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.