Your way out of The Lack of Testing Death Spiral

Mission Statement

To create an easily customizable and extensible open source tool that will automatically, or semi-automatically, generate unit tests for legacy systems written in Python.

Python doctor

Example

Take your code… …and admire your new test suite.

old_python.py:

class OldPython(object):
    def __init__(self, age):
        self.age = age
 
    def hiss(self):
        return "sss... *cough* *cough*"
… run Pythoscope on it…

$ pythoscope old_python.py

tests/test_old_python.py:

import unittest
 
class TestOldPython(unittest.TestCase):
    def test_object_initialization(self):
        assert False # TODO: implement your test here
 
    def test_hiss(self):
        assert False # TODO: implement your test here
 
if __name__ == '__main__':
    unittest.main()

More examples...

News

More news...

Development

Architecture

Research Materials

Events

Credits

Idea for this project came from Paul Hildebrandt and Titus Brown. Most of the code so far has been written by Michal Kwiatkowski.

About this page

This is a wiki (see What is a Wiki Site?), so if you want to edit pages, you have to register. If you're new to wikis learn how to edit pages first. You may also want to check out a list of site members.

You may also want to check out the recent changes or list all pages.

page_revision: 39, last_edited: 1224345639|%e %b %Y, %H:%M %Z (%O ago)
Unless stated otherwise Content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License