Martiusweb / asynctest

Enhance the standard unittest package with features for testing asyncio libraries
https://asynctest.readthedocs.org/
Apache License 2.0
309 stars 41 forks source link

Add automatic testing of all PRs #69

Open Kentzo opened 6 years ago

Kentzo commented 6 years ago

Let's use py.test and codecoverage (with support for branching).

It can be configured like this:

https://github.com/Kentzo/async_app/blob/master/setup.py#L15-L27 https://github.com/Kentzo/async_app/blob/master/setup.py#L50 https://github.com/Kentzo/async_app/blob/master/setup.cfg#L25-L27

Martiusweb commented 6 years ago

So we need pytest to enable code coverage right?

We could enable coveralls (https://coveralls.io/) to report stats in the PRs. I think we also want to run the tests twice (once with the "default" unittest runner) to ensure everything stays compatible with it.

Kentzo commented 6 years ago

@Martiusweb I'm using codecov.io, here is an example: https://github.com/Kentzo/Power/pull/25. Never used coveralls.io, don't know which one is better.

I do not like unittest's runner, but sure, we can run it to ensure the compatibility.