#dbus #codegen #development #unit-testing

bin+lib testwriter

A simple library and tool to generate a function that seeks to reproduce a received dbus signal message. This may be useful in writing unit tests in a TDD workflow.

4 releases

0.1.3 May 12, 2021
0.1.2 Mar 31, 2021
0.1.1 Mar 31, 2021
0.1.0 Mar 31, 2021

#516 in Testing

MIT license

6KB
66 lines

DBus TestWriter

This is a very simple little library that just prints out a function that tries to replicate a received dbus message.

This can be useful when you want to write a unit test against some DBus signal.

If this doesn't work with some signal you're seeing, please print out the message with println!("{:?}", message) and let me know so I might be able to fix it.

This is my first Rust crate, so be kind ;)

Dependencies

~5MB
~114K SLoC