aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/skype/HACKING
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@vmiklos.hu>2013-01-13 12:51:02 +0100
committerMiklos Vajna <vmiklos@vmiklos.hu>2013-01-13 12:51:02 +0100
commit650d2b479d6aa079f41c620c15b47764ac91595a (patch)
tree3f4d36747b266df04c0001b1a3410e4a4d080909 /protocols/skype/HACKING
parent9ec6b36ca5b9ee1a2a9311c4c8ebfa18c0c65b1e (diff)
skype: convert msg test to a mock-based one
Diffstat (limited to 'protocols/skype/HACKING')
-rw-r--r--protocols/skype/HACKING22
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