Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run tests without an actual Yunohost install #2386

Closed
selfhoster1312 opened this issue May 7, 2024 · 2 comments
Closed

Run tests without an actual Yunohost install #2386

selfhoster1312 opened this issue May 7, 2024 · 2 comments

Comments

@selfhoster1312
Copy link

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
Copy link
Member

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
Copy link
Member

Closing because ynh-dev addresses the issue ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants