diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2013-01-13 12:06:01 +0000 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2013-01-13 12:06:01 +0000 |
commit | 35571fb5d713f61bba6a4a3a91aed8c41827cc66 (patch) | |
tree | 3f4d36747b266df04c0001b1a3410e4a4d080909 /protocols/skype/HACKING | |
parent | 4cb21b79b3ade188b628dfc877cfa5fd6f8d5d03 (diff) | |
parent | 650d2b479d6aa079f41c620c15b47764ac91595a (diff) |
Merge from vmiklos.
Diffstat (limited to 'protocols/skype/HACKING')
-rw-r--r-- | protocols/skype/HACKING | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/protocols/skype/HACKING b/protocols/skype/HACKING index 68ea44e8..a6ff8290 100644 --- a/protocols/skype/HACKING +++ b/protocols/skype/HACKING @@ -16,3 +16,25 @@ run python skyped.py -n -d 4) irssi + +== Tests + +The plugin is tested with a mocked IRC client and a mocked skyped. To add a new +test, the following steps are necessary: + +1) Add a new -skyped.mock file: just do the test manually, copy&paste the +skyped output and clean it up, so Alice talks to Bob. You can test the created +mock file by starting skyped with the -m option, and testing it from an IRC +client manually. + +2) Add a new -bitlbee.mock file: do the test manually from irssi, and use: + +/connect -rawlog rawlog localhost + +Then clean up the rawlog: the input lines are parsed as matching patterns, so +boring prefix/suffix text can be left out, non-interesting lines can be +deleted. The output lines still have to be strict IRC commands, as usual. + +3) Add the new test to test.py and run it! + +// vim: ft=asciidoc |