0

I wrote a python application that creates multiple udp streaming pipelines using the python gstreamer bindings (Gst1.0 module). Each pipeline contains one udpsrc and can contain multiple udpsink elements and is dynamically modifiable. The user can add/remove/modify source or sinks dynamically via a UI during runtime. It is working as per expectation. However, I am not sure how to unit test the application as it is very tightly coupled with the gst module.

Can anybody suggest a unit test framework or any other tips that might help me?

  • You just need to decouple your code using dependency injection so you can test in isolation. – Dan Mar 03 '17 at 04:00
  • Have you found anything, interesting? I'm wondering how to test a gst-rstp-server application. But with all the signals I don't know where to start – WisdomPill Nov 30 '17 at 11:32
  • I eneded up 'mock'ing the Gst module. I figured it wasn't up to me to test that gstreamer works, but to make sure that my application runs in cohesion with it and handles the occasional errors thrown by it. – Sharnav Banik Dec 06 '17 at 17:51

0 Answers0