You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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``
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:
The text was updated successfully, but these errors were encountered: