YunoHost / issues

General issue tracker for the YunoHost project
72 stars 8 forks source link

Run tests without an actual Yunohost install #2386

Closed selfhoster1312 closed 4 months ago

selfhoster1312 commented 4 months ago

There are some tests in moulinette and yunohost modules but there is no documentation on how to run them. They are run in CI currently, but it would be nice to make sure we can run them before sending PR.

Even on a Yunohost install, it would be useful to document in README how to run the tests.

alexAubin commented 4 months ago

cf https://github.com/YunoHost/ynh-dev/blob/master/ynh-dev#L21, but to test yunohost you really do need a yunohost setup because you need a whole bunch of things, such as an LDAP database or nginx, etc ... It's pretty hard to imagine being able to mock everything

Moulinette tests can be ran more easily using tox iirc

alexAubin commented 4 months ago

Closing because ynh-dev addresses the issue ...