This is more of an intergration issue.
- You will have to run the test on different machines (but can be a remote or virtual machine) in order to test for different operating systems.
- You may want to integrate or automate these tests as a long-term solution. There are many continuous integration software for this.
- If you need to collect coverage data from different machines or processes, coverage can combine multiple files into one for reporting. Use the
-p
flag during execution to append distinguishing information to the.coverage
data file name.
Details can be found on thecoverage.py
documentation site.