[vlc-devel] Testing: best practices

Rémi Denis-Courmont remi at remlab.net
Wed Jan 15 12:16:53 UTC 2025


Hi

Le 11 janvier 2025 21:19:42 GMT+08:00, Jorge Bellon-Castro <jbelloncastro at gmail.com> a écrit :
>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?

Using real files is the older method from before mock was introduced. If you can use real files, then do that, but beware that we can't have large files there.

Br,


More information about the vlc-devel mailing list