Skip to content
This repository was archived by the owner on May 7, 2024. It is now read-only.

Commit 0b51e68

Browse files
committed
Merge pull request #3 from dtheodor/add_coverage
Add coverage
2 parents aa83095 + 99cbea2 commit 0b51e68

File tree

4 files changed

+17
-1
lines changed

4 files changed

+17
-1
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ docs/_build
77
__pycache__
88
.tox
99
.vagrant
10+
.coverage

.travis.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,13 @@ env:
88
- TOXENV=py34
99
- TOXENV=pypy
1010
- TOXENV=pypy3
11+
- TOXENV=coverage
1112
install:
1213
- "pip install tox"
1314
# command to run tests
1415
script: tox
1516
branches:
1617
only:
17-
- master
18+
- master
19+
notifications:
20+
email: false

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
##Flask-SQLAlchemySession
22

33
[![Build Status](https://travis-ci.org/dtheodor/flask-sqlalchemy-session.svg?branch=master)](https://travis-ci.org/dtheodor/flask-sqlalchemy-session)
4+
[![Coverage Status](https://coveralls.io/repos/dtheodor/flask-sqlalchemy-session/badge.svg)](https://coveralls.io/r/dtheodor/flask-sqlalchemy-session)
45
[![Documentation Status](https://readthedocs.org/projects/flask-sqlalchemy-session/badge/?version=latest)](http://flask-sqlalchemy-session.readthedocs.org/en/latest/)
56

67
Provides an SQLAlchemy scoped session that creates

tox.ini

+11
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,14 @@ commands = py.test tests/
1616
deps =
1717
pytest>=2.6
1818
py26,py27,pypy,pypy3: mock>=1.0
19+
20+
[testenv:coverage]
21+
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
22+
commands =
23+
py.test tests/ --cov flask_sqlalchemy_session
24+
coveralls
25+
deps =
26+
pytest>=2.6
27+
pytest-cov>=1.8.1
28+
mock>=1.0
29+
coveralls

0 commit comments

Comments
 (0)