Hi, I have written a new pytest coverage plugin from the ground up to fully support distributed testing since both pytest and coverage provide good support for doing this. Plus it gives access to pretty much everything that coverage has that I know about.
The use case that you state is interesting. Setting dist=load will cause pytest to spread the tests out to many slaves with a single coverage report from their combined data. However each node is running different tests so setting them to different python / platform may not give full coverage. Setting dist=each will cause pytest to gives all tests to each slave with a report from each slave. However each report will just be for the one slave. I had not thought of the case you suggest where it may be desirable to instruct the plugin to actually combine the results from each slave where each slave has run all tests. I will consider this further. :) On 21 April 2010 12:43, James Mills <prolo...@shortcircuit.net.au> wrote: > Hi All, > > I am in need of a solution regarding the use of py.test and pytest-coverage > (the coverage plugin I help maintain for py.test). > > The problem is being able to run a test suite against 2 or more different > python interpreter versions (eg: 2.5 and 2.6) AND combining their > coverage data. > > Without the above behavior, it would not be possible to achieve 100% code > coverage (by tests). Often (at least I do) in situations where you > wish to support > 2 or more different versions of python you might have: > > try: > import foo # 2.6 import > except ImportError: > import bar # 2.5 import > > and > > if sys.version_info[:2] == (2, 6): > # 2.6 code > else: > # 2.5 code > > Currently I have no solution for this, I'm hoping others might have > some ideas or are already working on something similar that might > achieve this. > > cheers > James > > -- > -- "Problems are solved by method" > _______________________________________________ > py-dev mailing list > py-dev@codespeak.net > http://codespeak.net/mailman/listinfo/py-dev > _______________________________________________ py-dev mailing list py-dev@codespeak.net http://codespeak.net/mailman/listinfo/py-dev