Running unit tests
Unit tests are an automatic test suite to check that your product is intact after changes and there has not been regression. Plone has wonderful support for unit testing.
Setting up the unit test launcher
---------------------------------
Create a PyDev Python run launcher as normally from *Run -> Open Run Dialog* menu. Use *Python run*, not *Python unit test* as the launcher type, since PyDev unit test result parser might not be compatible with Zope specific unit test output.
For the program, choose (on Linux)
::
${workspace_loc:project/bin/instance};
Program arguments for testing the whole package are:
::
test -s some.package
Program arguments for testing a single test case class are:
::
test -s some.package testCaseName.py
If no tests are run (test count = 0) then you have probably an error with your package name.
