Skip to main content

Gherkin runner compatible with Lettuce

Project description

A [Gherkin][gherkin] runner for Python based on [Nose][nose] and [Lettuce][lettuce].

Install:

pip install aloe

Read the [documentation][docs].

Invocation

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][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.

TODO

In no particular order:

  • Verbose output (all steps printed as they run) is missing.

License

Aloe - Cucumber runner for Python based on Lettuce and Nose

Copyright (C) <2015> Alexey Kotlyarov <a@koterpillar.com>

Copyright (C) <2014-2015> Danielle Madeley <danielle@madeley.id.au>

Copyright (C) <2010-2012> Gabriel Falcão <gabriel@nacaolivre.org>

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/>.

[gherkin]: https://cucumber.io/ [nose]: https://nose.readthedocs.org/ [nose-plugin-attrib]: https://nose.readthedocs.org/en/latest/plugins/attrib.html [lettuce]: http://lettuce.it/ [gherkin-syntax]: https://cucumber.io/docs/reference [aloe-django]: https://github.com/koterpillar/aloe_django [docs]: http://aloe.readthedocs.org/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aloe-0.0.24.tar.gz (62.3 kB view details)

Uploaded Source

File details

Details for the file aloe-0.0.24.tar.gz.

File metadata

  • Download URL: aloe-0.0.24.tar.gz
  • Upload date:
  • Size: 62.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for aloe-0.0.24.tar.gz
Algorithm Hash digest
SHA256 7d3c6dc5926e894e5cd0cf4afcf9fd068cd8edb2e7911fa34787cb2282f495a0
MD5 ae530a2227144dfb9bcd071b6da7a16c
BLAKE2b-256 1630c0e496068cef04ef432c00f3c8cba376d050f5486cc62031daea605abc9a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page