Skip to content

Platform specific testing #258

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

Open
awvwgk opened this issue Nov 29, 2020 · 0 comments
Open

Platform specific testing #258

awvwgk opened this issue Nov 29, 2020 · 0 comments

Comments

@awvwgk
Copy link
Member

awvwgk commented Nov 29, 2020

I'm kinda run into this issue when creating unit tests for the fpm-install command. We make a lot of implicit assumptions on the OS which does not allow to test both variants on the same build machine. It would be helpful for unit testing (and caching) to give all filesystem operations an optional input to set the build machine OS. Testing this kind of stuff on the CI is not great.

Also this allows to cache the OS identifier minimizes the calls to get_os_type.

The alternative would be to always abstract all OS specific testing in a separate library, but this just shifts the problem away to another project.

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

No branches or pull requests

1 participant