Alright, I started writing some unit tests for Feeds and I wanted to integrate them into meson, so that I can just run
meson test or
ninja test during build and have them run automagically.
As an added bonus, they should also run when creating a flatpak package, so that I don’t accidentally push a broken built to users.
Here’s the very simplistic way I accomplished this task:
- have your tests in a
testsdirectory in the root of your project
- add this to your
envdata = environment()
While this works locally, I’m still having problems with running them during the flatpak build in GitLab CI, so I’ll try to solve that as well and update this post accordingly.