Skip to main content

A rough-scaled python spec generator

Project description

Carinata is a command line tool which transforms spec files into unittest cases. It tries to be a bit like RSpec, but for python. It includes a management command for Django.

Spec files contain blocks called describe, context, before, after, let and it, which in turn contain pure python. Carinata uses these blocks to create a TestCase corresponding to each it block, with the setup from before and let and the teardown from after.

See the project homepage on GitHub for more information, but here is an example:

describe "My Awesome class":
    context "with the number 42":
        let "awesome": Awesome(42)

        it "jumps for joy":
            assert self.awesome.jumps_for_joy()

    context "with a string":
        let "awesome": Awesome('wow!')

        it "says it":
            assert self.awesome.say() == "Awesome says 'wow!'"

Project details


Release history Release notifications

History Node

0.12.1

History Node

0.12.0

This version
History Node

0.11.0

History Node

0.10.6

History Node

0.10.5

History Node

0.10.4

History Node

0.10.3

History Node

0.10.2

History Node

0.10.1

History Node

0.10.0

History Node

0.6.0

History Node

0.5.0

History Node

0.4.2

History Node

0.3.2

History Node

0.3.1

History Node

0.3.0

History Node

0.2.1

History Node

0.2.0

History Node

0.1.2

History Node

0.1.1

History Node

0.1.0

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
carinata-0.11.0.linux-x86_64.tar.gz (16.2 kB) Copy SHA256 hash SHA256 Dumb Binary any Aug 6, 2014
carinata-0.11.0.tar.gz (7.9 kB) Copy SHA256 hash SHA256 Source None Aug 6, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page