tama / pogo-discord-mod-bot

Simple mod tasks on a (pokemon go related) discord server
GNU General Public License v2.0
1 stars 0 forks source link

Add project status and coverage to readme #25

Open nicolasblaye opened 5 years ago

nicolasblaye commented 5 years ago

Thanks to travis, we could add badges like the status of the project or the coverage to the readme. This is a nice touch as it will motivate us to have a better coverage.

nicolasblaye commented 5 years ago

for code coverage, what do you think about that? https://codecov.io/ I've seen some popular repo use it. For info, here is our current coverage for nose2:

Ran 14 tests in 0.009s

OK
Name                         Stmts   Miss  Cover
------------------------------------------------
mod_bot/__init__.py              0      0   100%
mod_bot/gym.py                  73      8    89%
mod_bot/main.py                284    284     0%
mod_bot/raid.py                 52      3    94%
mod_bot/roulette.py             35     35     0%
test/test_gym_match.py          55      0   100%
test/test_raid_creation.py      72      0   100%
------------------------------------------------
TOTAL                          571    330    42%
tama commented 5 years ago

Looking good. Is there some way to integrate it into auto builds ?

nicolasblaye commented 5 years ago

the coverage from nose2, I don't think so. In Travis docs, this goes to external app like codecov, that do their own coverage analysis. Here is an example of code cov for a popular project: https://codecov.io/gh/apache/arrow