Comment 1 for bug 189572

Revision history for this message
Markus Korn (thekorn) wrote :

I started to work on this bug over the weekend, let me give you a short overview of the current state:

* I'm using python's unittest-module as a testing framework
* I added a cmdl. tool to run/manage the testcases, to get a list of all available testcases run:
$ python testing/run_tests.py -l
** this return something like:
testmodul1
    .testclass1
        .testcase1
        .testcase2
    .testclass2
        .testcase1
testmodul2
    .testclass1
        .testcase1

* to run all testcases run:
$ python testing/run_tests.py -a

* if you want to test py-lp-bugs against python2.4 run:
$ python2.4 testing/run_tests.py -a

* if you want to run only a subset of the testcases, you can use the '-s' option:
$ python testing/run_tests.py -s testmodul1 testmodul2.testclass1 testmodul.testclass2.testcase1
** the number of arguments given to '-s' is arbitrary
** the arguments are path-like strings; to get an summary of all available pathes use the '-l' option described above

* you can also ignore testcases with the '-i' option:
$ python testing/run_tests.py -a -i testmodul1.testclass2.testcase10 testmodule2
** this will ignore the testcase testmodul1.testclass2.testcase10 and all testcases in testmodul2
** there is also some basic RegEx support

* some testcases needs information like the path to a cookiefile or password/email of your launchpad.net account, to run these testcases you need to create "~/.python-launchpad-bugs/test.cfg" with the following content:
[config]
password = mypassword
email = myemail
cookiefile = path-to-cookie-file

The next step will be to create more testcases.

Markus