From 1e21b116cd537e40eb0becf0110e34b3b24794dd Mon Sep 17 00:00:00 2001 From: noah Date: Sun, 11 Jul 2010 01:54:48 +0000 Subject: 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 --- pexpect/DEVELOPERS | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) (limited to 'pexpect/DEVELOPERS') 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') - -- cgit v1.2.1