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

This is a thin python wrapper around the envjasmine JavaScript testing framework.

Installation

You can install pyenvjasmine using pip or easy_install:

pip install pyenvjasmine
easy_install pyenvjasmine

Or you can grab the latest sources and install it from there:

python setup.py install

Also, you can use it directly from the sources directory, in development mode (useful if you want to contribute to the project):

pip install -e .

Running pyenvjasmine tests

To run the tests on this code here (as opposed to your JavaScript code you want to test), install pyenvjasmine and then run:

nosetests --cover-package=pyenvjasmine --cover-erase \
--with-coverage --with-doctest $*

Note

If you have installed pyenvjasmine in development mode, you can simply run:

nosetests -c nose.cfg

to run the tests from within the pyenvjasmine sources directory.

Run your own tests

The easiest way is to put your “specs” (JavaScript tests) into some directory in your code, then in your python tests, add a new TestCase with just one test that runs all your JavaScript tests.

The simplest solution is to set capture_output to False, so you see the output from the js tests on the console. Something like this:

import unittest
from pyenvjasmine.runner import TestRunner

class JavaScriptTests(unittest.TestCase):
    def test_my_javascript(self):
        runner = TestRunner(
                  testdir='/path/to/my/testdir',
                  configfile='relative/path/to/configfile')
        runner.run(capture_output=False)

If you want a more integrated test control, you could set capture_output to True, then parse the test output that is returned from the run() method, with something like this:

import unittest
from pyenvjasmine.runner import TestRunner

class JavaScriptTests(unittest.TestCase):
    def test_my_javascript_no_output(self):
        runner = TestRunner(
                  testdir='/path/to/my/testdir',
                  configfile='relative/path/to/configfile')
        res = runner.run(capture_output=True)
        lines = res.splitlines()
        self.assertTrue('Failed: 0' in lines)
Release History

Release History

0.1.5

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

0.1.4

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

0.1.3

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

0.1.2

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

0.1.1

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

0.1

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
pyenvjasmine-0.1.5.tar.gz (2.3 MB) Copy SHA256 Checksum SHA256 Source Apr 24, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development 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