Skip to content

Commit

Permalink
Add and document codecov tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
adiroiban committed Jun 24, 2016
1 parent b30364b commit 307ff48
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CONTRIBUTING
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,9 @@ https://twistedmatrix.com/trac/newticket
Twisted uses Trac to keep track of bugs, feature requests, and associated
patches because GitHub doesn't provide adequate tooling for its community.

For a PR to be accepted it needs to have at least all Travis CI tests passing.
For a PR to be accepted it needs to have:

* all Travis CI tests passing
* patch coverage of 100% as reported by codecov.io

The Travis CI tests currently represent only a subset of the all the platforms Twisted supports, so the buildbot tests are still the actual gate for PR acceptance.
20 changes: 20 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#
# We want %100 coverage for new patches to make sure we are always increasing
# the coverage.
#
# For now codecov.io has no way to fail if project overall coverage is
# decreased... but I think this is hard as for example if we deprecated and
# remove some code which is well covered we might end up with a smaller
# coverage.
#
coverage:
precision: 2
round: down
status:
patch:
default:
target: 100%

comment:
layout: "header, diff, uncovered"
behavior: default

0 comments on commit 307ff48

Please sign in to comment.