issues icon indicating copy to clipboard operation
issues copied to clipboard

Run tests without an actual Yunohost install

Open selfhoster1312 opened this issue 1 year ago • 1 comments

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.

selfhoster1312 avatar May 07 '24 09:05 selfhoster1312

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 avatar May 07 '24 12:05 alexAubin

Closing because ynh-dev addresses the issue ...

alexAubin avatar May 19 '24 11:05 alexAubin