[vlc-devel] Testing: best practices

Jorge Bellon-Castro jbelloncastro at gmail.com
Sat Jan 11 13:19:42 UTC 2025


Good afternoon,
I submitted a few bug fixes and extensions to the dbus control module in
the past. One thing I noticed is that there is no integration testing for
this. Even if this is not interesting for the VLC project specifically (in
which case I would not submit any merge request), I think it could be handy
for me to have some sort of small tests that validate my current and
specially future changes.

I am looking for some good practices to implement a few test cases. Some of
the basic things I will need to do is to queue media to play and inspect
the tracklist. I found there are two ways test queue media to be played:
some tests use files in the sample directory and others use the "mock://"
uri scheme. Are there any advantages of using one over the other?

My plan was to use dbus-launch to have a dbus daemon process local to a
specific test.

Thanks in advance for any tips.
  Jorge
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20250111/7d3490c4/attachment.htm>


More information about the vlc-devel mailing list