Skip to content

Commit

Permalink
code coverage command now available
Browse files Browse the repository at this point in the history
  • Loading branch information
zupo committed Oct 6, 2013
1 parent 674950e commit 95adaab
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ install:
- make version=$TRAVIS_PYTHON_VERSION .installed.cfg

script:
- make tests
- make coverage

after_success:
- pip install python-coveralls==2.4.0
Expand Down
14 changes: 11 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ options =

all: docs tests

coverage: htmlcov/index.html

htmlcov/index.html: src/plone/api/*.py bin/coverage
@bin/coverage run --source=./src/plone/api/ --branch bin/test
@bin/coverage html -i
@touch $@
@echo "Coverage report was generated at '$@'."

docs: docs/html/index.html

docs/html/index.html: docs/*.rst docs/contribute/*.rst docs/api/*.rst src/plone/api/*.py bin/sphinx-build
Expand All @@ -33,8 +41,8 @@ tests: .installed.cfg
@bin/flake8 src/plone/api

clean:
@rm -rf .installed.cfg bin docs/html parts develop-eggs \
src/plone.api.egg-info lib include .Python
@rm -rf .coverage .installed.cfg .mr.developer.cfg bin docs/html htmlcov \
parts develop-eggs src/plone.api.egg-info lib include .Python

.PHONY: all docs tests clean
.PHONY: all coverage docs tests clean

7 changes: 6 additions & 1 deletion docs/CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ Changes
1.0.0-rc.2 (unreleased)
-----------------------

- Fix api.content.copy without target parameter. [rodfersou]
- Add a new `make coverage` command and add support for posting coverage to
Coveralls.io.
[zupo]

- Fix api.content.copy without target parameter.
[rodfersou]

- Prefer single quotes over double quotes in code style.
[zupo]
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def read(*rnames):
],
extras_require={
'develop': [
'coverage',
'flake8',
'jarn.mkrelease',
'manuel',
Expand Down

0 comments on commit 95adaab

Please sign in to comment.