Skip to main content

unit test generator for Python

Project description

Installation

Easiest way to get Pythoscope is via setuptools:

$ easy_install  pythoscope

You can also download a source package from http://pythoscope.org/local–files/download/pythoscope-0.2.1.tar.gz. or get a copy of a development branch using bazaar:

bzr branch lp:pythoscope

Usage

You can use the tool through a single pythoscope command. To analyze one of your projects, type:

$ pythoscope  collect  path/to/your/project/

It’s only doing static analysis, and doesn’t import your modules or execute your code in any way, so you’re perfectly safe to run it on anything you want. After that, a file named .pythoscope will be created in the current directory. To generate test stubs based on your project, select files you want to generate tests for:

$ pythoscope  generate  path/to/your/project/specific/file.py  path/to/your/project/other/*.py

Test files will be saved into pythoscope-tests/ directory. Test cases are aggregated into TestCase classes. Currently each production class and each production function gets its own TestCase class.

Some of the classes and functions are ignored by the generator - all which name begins with an underscore, exception classes, and some others.

Generator itself is configurable to some extent, see:

$ pythoscope  generate  --help

for more information on available options.

Changelog

0.2.1

Contains a packaging bug fix, which prevented users from using the tests cases generator and running internal pythoscope tests.

0.2

First release, featuring static code analysis and generation of test stubs.

Project details


Release history Release notifications

History Node

0.4.3

History Node

0.4.2

History Node

0.4.1

History Node

0.4

History Node

0.3.2

History Node

0.3.1

History Node

0.3

History Node

0.2.2

This version
History Node

0.2.1

History Node

0.2

History Node

0.1

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
pythoscope-0.2.1.tar.gz (8.5 kB) Copy SHA256 hash SHA256 Source None Aug 22, 2008

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