Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement unit testing #3

Open
seshness opened this issue Jul 24, 2011 · 1 comment
Open

Implement unit testing #3

seshness opened this issue Jul 24, 2011 · 1 comment
Assignees

Comments

@seshness
Copy link
Collaborator

We've got a basic subset of pyscheme up and running by now. To ensure that we don't break any existing functionality we need an easy-to-run comprehensive unit testing system.

The unit testing system should:

  • verify the created data structures
  • verify the contents of the created data structures
  • be quick to run. If it takes longer than a second to run, it ought to be stripped down
  • provide a way to run all unit tests
  • be launchable from a git pre-commit-hook
@ghost ghost assigned seshness Jul 24, 2011
seshness pushed a commit that referenced this issue Jul 24, 2011
Summary:
We finally have unit testing set up!

unittest works just like JUnit - subclass unittest.TestCase for your unit tests
and place them in a file in tests/. Methods prefixed with "test" are executed.

See python's unittest documentation at http://docs.python.org/library/unittest.html

Run all the unit tests with
``python -m unittest discover``

Sadly this functionality is only provided in Python 2.7+
I'll try to get a pre-2.7 solution at some point, given the popularity of 2.6
and its presence on the Berkeley servers.

Issue: #3

Test Plan:
Seriously. You want me to test a unit testing framework.
Fine.
``python -m unittest discover``
@seshness
Copy link
Collaborator Author

works on Python 2.7 only so far

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant