source: protocols/skype/HACKING @ 875ba16

Last change on this file since 875ba16 was 650d2b4, checked in by Miklos Vajna <vmiklos@…>, at 2013-01-13T11:51:02Z

skype: convert msg test to a mock-based one

  • Property mode set to 100644
File size: 969 bytes
RevLine 
[15282dc]1== Tabs
2
[02a531b]3I use the following tabs during the development:
4
51) bitlbee-skype:
6
7vim, make, etc.
8
92) bitlbee:
[9a4bb33]10
[83f9aeb]11gdb --args ./bitlbee -v -n -D
12run
[9a4bb33]13
[02a531b]143) skyped:
[9a4bb33]15
[c99bb05]16python skyped.py -n -d
[02a531b]17
[8a2df93]184) irssi
[650d2b4]19
20== Tests
21
22The plugin is tested with a mocked IRC client and a mocked skyped. To add a new
23test, the following steps are necessary:
24
251) Add a new -skyped.mock file: just do the test manually, copy&paste the
26skyped output and clean it up, so Alice talks to Bob.  You can test the created
27mock file by starting skyped with the -m option, and testing it from an IRC
28client manually.
29
302) Add a new -bitlbee.mock file: do the test manually from irssi, and use:
31
32/connect -rawlog rawlog localhost
33
34Then clean up the rawlog: the input lines are parsed as matching patterns, so
35boring prefix/suffix text can be left out, non-interesting lines can be
36deleted. The output lines still have to be strict IRC commands, as usual.
37
383) Add the new test to test.py and run it!
39
40// vim: ft=asciidoc
Note: See TracBrowser for help on using the repository browser.