This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

CoreJet test runner Pivotal Tracker integration

This package provides a requirements catalogue source for corejet.testrunner that can fetch requirements from Pivotal Tracker.

To use it, make sure it is installed in the working set of the testrunner. If using Buildout, you can do this with:

[test]
recipe = corejet.recipe.testrunner
eggs =
    corejet.pivotal
    <other packages>
defaults = ['--auto-color', '--auto-progress']

Here is an example command line invocation:

./bin/test -s corejet.core --corejet="pivotal,token=mypivotaltoken,project=123456,filter=myepickeyword"

The --corejet option must start with pivotal, followed by a set of parameters that indicate how to connect to Pivotal Tracker. The parameters are:

<epic>,<epic>,...
optional pivotal.cfg section names to retrieve options per epic
token=<token>
default Pivotal token to use in authentication
project=<project>
default Pivotal project id to retrieve stories from
filter=<filter>
default Pivotal filter string to retrieve stories for this epic
title=<title>
optional requirements catalog title (defaults to the first found Pivotal project title)

Pivotal stories matching project and filter options may contain scenarios in simple Gherkin syntax in their description field, e.g.:

Scenario: First scenario
Given a precondition
  And another precondition
When something happens
  And something else happens
Then a result is expected
  And another result is expected

Scenario: Second scenario
Given another precondition
When something else happens
Then a different result is expected

The parser is relatively forgiving, but note:

  • The parser is case-insensitive
  • Zero or more scenarios may be present
  • Scenarios must start with “Scenario: ” followed by a name
  • The “Given” clause is optional, but must come first in a scenario
  • The “When” clause is required, and must come before the “Then” clause
  • The “Then”” clause is also required
  • An “And” or “But” clause can come after any “Given”, “When” or “Then”, but not first.

Please, note that filter will include includedone:true implicitly when it’s not explicitly set to false.

Optional pivotal.cfg which is looked at first the current working directory upwards (or from ~/.pivotalrc) may be an INI-style config file describing key value pairs within sections (special defaults-section is supported for defining defaults).

You may define several epics, for example, with the following setup:

  1. ~/.pivotalrc:

    [defaults]
    token = mysecretpivotaltrackertoken
    
  2. ./pivotal.cfg:

    [defaults]
    title = My project
    project = 123456
    
    [first-epic]
    title = A component for my project
    filter = label:firstlabel
    
    [another-epic]
    title = An another component for my project
    filter = label:anotherlabel
    
  3. Execute CoreJet with:

    ./bin/test  --corejet="pivotal,first-epic,another-epic"
    

It’s also possible to define list of epic-sections in [defaults] with epics = first-epic,another-epic and run tests with --corejet=pivotal.

Package corejet.core includes XSLT to generate test skeletons in Python from corejet.xml, e.g.:

xsltproc eggs/corejet.core-1.0.0-py2.6.egg/corejet/core/xslt/corejet-to-python.xsl parts/test/corejet/corejet.xml

Install experimental bin/pivotal tool by adding the following part into your buildout.cfg:

[buildout]
parts += scripts

[scripts]
recipe = zc.recipe.egg
eggs = corejet.pivotal

Changelog

1.2.0 (2012-10-18)

  • Fixed stories to always have a minimum size of 1 point.

1.1.0 (2012-10-18)

  • Fixed to not crash on story parsing error, but print url of the failing story instead.

1.0.0 (2012-05-26)

  • Added support for config files and possibility to define epics using them.
  • Changed scenarios parsed from tasks to be parsed only after parsing description (to allow definition of story-level steps in description).

1.0a5 (2011-08-28)

  • Added support for tasks: If a story has tasks, their descriptions will be parsed for scenarios (and those will be appended) before parsing story’s main description.

1.0a4 (2011-08-26)

  • Fixed to replace every ” with ‘ before parsing scenario descriptions. If “s were allowed to let through, those should be escaped in test decorators, which would look ugly.

1.0a3 (2011-08-02)

  • Fixed package info to match with other corejet packages.

1.0a2 (2011-08-02)

  • Connected Pivotal estimates to CoreJet points.
  • Added filter for stories with no scenarios.

1.0a1 (2011-08-01)

  • First release.
Release History

Release History

1.2.0

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.1.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.0.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.0a5

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.0a4

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.0a3

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.0a2

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
corejet.pivotal-1.2.0.zip (16.4 kB) Copy SHA256 Checksum SHA256 Source Oct 18, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting