schultyy / os_type

Rust library to detect the operating system type
MIT License
30 stars 18 forks source link

Improve tests #22

Open schultyy opened 7 years ago

schultyy commented 7 years ago

So far we have a couple of unit tests and a few integration tests in place to guarantee in a very rudimentary way that things are working.

Instead I'd like to ensure for every operating system that things are working as expected. This means, for every operating system I'd like to ensure that os_type is able to detect the vendor and the version number. Since Travis CI only offers Ubuntu and Mac OS machines to accomplish this, we probably also have to take AppVeyor in to guarantee that things are working on Windows as well. To cover other Linux distributions, probably Docker can become useful. This means a binary gets compiled beforehand. This binary then uses os_type to get the OS type and version and compares it with the values it got passed in.