[pytest-dev] Exemplary py.test usage in open-source?

holger krekel holger at merlinux.eu
Tue Nov 25 10:03:40 CET 2014


On Tue, Nov 25, 2014 at 00:05 +0000, Hashemi, Mahmoud wrote:
> Hehe, sorry for the top post, work computer. I did actually try searching conftest.py on Github, but there were altogether too many results :) Didn't seem like there was a solid sorting mechanism either.
>
> The Mozilla tests are particularly interesting because they use Python to test non-Python codebases, which is a major area of interest in the increasingly diverse PayPal engineering community. Those sorts of py.test conventions really resonate for the corporate/product types :) Also, small note, I'd probably update the Projects page link to the Mozilla Github so the code is more readily showcased. Otherwise, the Projects page is fantastic :)

I happily accept PRs listing projects.  Please add your own project contexts as
that would be interesting for others as well i guess :)

As far as testing non-python codebases goes, these two integrate C/C++:

    https://pypi.python.org/pypi/pytest-cpp
    http://pytest-c-testrunner.readthedocs.org/en/latest/

Many are using pytest to test command line scripts (which are not neccessarily
written in Python) and pytest itself has many tests written against it this way.  
Didn't get around to release a "pytest-cli" plugin i have started somewhere.

> Hope to hear more soon!

same here :)

holger


More information about the pytest-dev mailing list