Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install specloud

How to install specloud

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install specloud
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.4.5 Available View build log
0.4.4 Available View build log
0.4.3 Available View build log
0.4.2 Available View build log
0.4.0 Available View build log
Windows (64-bit)
0.4.5 Available View build log
0.4.4 Available View build log
0.4.3 Available View build log
0.4.2 Available View build log
0.4.0 Available View build log
Mac OS X (10.5+)
0.4.5 Available View build log
0.4.4 Available View build log
0.4.3 Available View build log
0.4.2 Available View build log
0.4.0 Available View build log
Linux (32-bit)
0.4.5 Available View build log
0.4.4 Available View build log
0.4.3 Available View build log
0.4.2 Available View build log
0.4.0 Available View build log
Linux (64-bit)
0.4.5 Available View build log
0.4.4 Available View build log
0.4.3 Available View build log
0.4.2 Available View build log
0.4.0 Available View build log
 
License
MIT
Dependencies
Imports
Lastest release
version 0.4.5 on May 24th, 2012

SpecLoud

Use nosetests and plugins to take BDD specifications easier.

Installation

The easiest way to install specloud is using pip and requirements file:

$ pip install specloud

Usage

Get a python file with BDD-style test names (starting with it, ensure, should, must, spec, example, deve) and add them to the test suite

For example:

$ cat example.py

import unittest


class CalculatorSpec(unittest.TestCase):

    def it_should_sum_integers(self):
        # ...
        pass

    def should_not_divide_by_zero(self):
        # ...
        pass

    def must_accept_floats(self):
        # ...
        pass

    def ensure_it_work_with_fractions(self):
        # ...
        pass

    def test_subtract_positive_from_negative_numbers(self):
        # ...
        pass

    def deve_calcular_raizes_quadradas(self):
        # ...
        pass

The command line tool specloud colorizes green for tests with no failures and no errors and red for tests with failures and/or errors:

$ specloud example.py

Calculator spec
- ensure it work with fractions
- it should sum integers
- must accept floats
- should not divide by zero
- subtract positive from negative numbers
- deve calcular raizes quadradas

----------------------------------------------------------------------
Ran 6 tests in 0.003s

OK
How It Works

SpecLoud is a python package that install nose, pinocchio and figleaf packages, so it can call nosetests with pinocchio and figleaf plugins. nosetests is called with some default options to find test methods and pinocchio to show pretty and colored messages. figleaf is just pinocchio dependency.

A call to:

$ specloud FILE

is the same doing:

$ nosetests -i '^(it|ensure|must|should|specs?|examples?|deve)' -i '(specs?(.py)?|examples?(.py)?)$' '--with-spec' '--spec-color'
Old Name

The project was born as a proof of concept and I named it firstly pyunitbdd. But that's a terrible name. So I renamed the project to specloud.

Subscribe to package updates

Last updated May 24th, 2012

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.