hannesrauhe / lunchinator

Tool to call colleagues for lunch
Other
1 stars 0 forks source link

Provide Test Framework for plugins #66

Open hannesrauhe opened 10 years ago

hannesrauhe commented 10 years ago

The framework should have two purposes:

entropia1 commented 10 years ago

Just dropping my current thoughts, because I would definitely profit from some testing facilities while developing private messages. What I would need is a "dummy lunch server" whose behavior I can manipulate. It should also contain dummy peers. For example, I would use it to simulate delayed ACKs, receive errors or simply messages to me. Maybe it's enough to replace get_server to return a class that can be user defined. However, this still sound like a lot of work, so I'm not sure if I will ever implement it.

hannesrauhe commented 10 years ago

What if we just replaced the socket with a queue?

With an additional plugin we could manually add messages, script message streams and trigger them.

entropia1 commented 10 years ago

I'm not sure whether I will be able to intercept / delay certain messages using your proposal? Is there any difference to just sending the message to yourself right now?

hannesrauhe commented 10 years ago

You can manipulate the IP.

hannesrauhe commented 10 years ago

But you are right. You cannot model responses by this.