summaryrefslogtreecommitdiff
path: root/pexpect/DEVELOPERS
diff options
context:
space:
mode:
authornoah <noah@656d521f-e311-0410-88e0-e7920216d269>2010-07-11 01:54:48 +0000
committernoah <noah@656d521f-e311-0410-88e0-e7920216d269>2010-07-11 01:54:48 +0000
commit1e21b116cd537e40eb0becf0110e34b3b24794dd (patch)
tree280b684f1fffffc74e8d6b329e0bad2cd2efdb31 /pexpect/DEVELOPERS
parentde2c4c0e45f0ea8c9a20fddf4c7b52c27bb7f3f5 (diff)
downloadpexpect-1e21b116cd537e40eb0becf0110e34b3b24794dd.tar.gz
Added a fix to ANSI.py by Shane Kerr.
Also found a bug in support for Unicode. I was not able to fix it at the time. Unicode is still a pain in the ass. git-svn-id: http://pexpect.svn.sourceforge.net/svnroot/pexpect/trunk@521 656d521f-e311-0410-88e0-e7920216d269
Diffstat (limited to 'pexpect/DEVELOPERS')
-rw-r--r--pexpect/DEVELOPERS22
1 files changed, 14 insertions, 8 deletions
diff --git a/pexpect/DEVELOPERS b/pexpect/DEVELOPERS
index 905fb23..8f9aa43 100644
--- a/pexpect/DEVELOPERS
+++ b/pexpect/DEVELOPERS
@@ -1,14 +1,19 @@
-First off, you need to source the environment file provided in the root of the
-development directory.
+To edit and test code and to run the Pyunit tests you need to source the
+environment file provided in the root of the development directory.
+For example:
. test.env
-This sets the PYTHONPATH to the Pexpect development root directory. This way
-the unit tests and python interpreter will import the development version of
-pexpect instead of any older versions that you may have installed on the
-system. Running all unit tests is as simple as sourcing test.env and then
-running tools/testall.py.
+Then to run unit tests run the testall.py script under the tools/ directory.
+For example:
+
+ ./tools/testall.py
+
+The test.env environment file sets the PYTHONPATH to the Pexpect development
+root directory. This way the unit tests and python interpreter will import the
+development version of Pexpect instead of any older versions that you may have
+installed on the system.
The Pyunit tests are all located in the tests/ directory. To add a new unit
test all you have to do is create the file in the tests/ directory with a
@@ -32,8 +37,10 @@ import PexpectTestCase
# unittest.MakeSuite.
# 3. All test case methods should be named like test_*.
class TestCaseFoo (PexpectTestCase.PexpectTestCase):
+
def test_case (self):
assert (False), "This is an example template."
+
def test_case_something_else (self):
assert (False), "This is an example template."
@@ -43,4 +50,3 @@ if __name__ == '__main__':
suite = unittest.makeSuite(TestCaseFoo,'test')
</pre>
-