Skip to main content

Create and run executable specifications with Pythonic BDD style grammar

Project description

Specit

Specit assists in creating and running executable specifications. It was inspired by specloud and and Jasmine.

Features

  • uses nose for discovering and running specs

  • provides a base set of matchers for defining expectations

Installation

You can install upgrade or uninstall specit with these commands:

> pip install specit
> pip install -U specit
> pip uninstall specit

If you do not have pip you may use easy install:

> easy_install specit

If you done have easy_install, you may download the specit source distribution archive. Extract it and run:

> python setup.py install

Usage

Below is a simple example showing how you use the builtin matchers to craft readable specifications for your code:

>>> from specit import expect
>>> fruit = 'Orange'
>>> expect(fruit).to_equal('Orange')
>>> expect(fruit).to_equal('Apple')
Traceback (most recent call last):
    ...
AssertionError: Expected 'Orange' to equal 'Apple'

Copyright (c) 2010 - Rudy Lattae. Released under the New BSD License.

Changelog

0.1.2a (2010-12-08)

  • First public release

TODO

  • Provide better documentation and package information

  • package url?

  • distutils, setuptools or distribute?

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

specit-0.1.2a.zip (7.9 kB view hashes)

Uploaded Source

Built Distribution

specit-0.1.2a.win32.exe (205.0 kB view hashes)

Uploaded Source

Supported by

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