Skip to content

Commit 954b6df

Browse files
committed
improve coverage collection
1 parent ccdf536 commit 954b6df

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

.coveragerc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[run]
2+
source=.
3+
omit=./env/*

run_tests.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,21 @@ fi
1616
cd ..
1717
$virtualenv env
1818
export VIRTUAL_ENV_DISABLE_PROMPT=1
19+
export PYTHONPATH=$(pwd)
1920
source env/bin/activate
2021
cd -
2122

2223
# install utilities
2324
$pip install coverage flake8
2425

25-
# install testgres
26+
# install testgres' dependencies
2627
$pip install .
2728

2829
# test code quality
2930
flake8 .
3031

3132
# run tests
32-
cd testgres/tests
33-
coverage run test_simple.py
33+
coverage run tests/test_simple.py
3434

3535
# show coverage
3636
coverage report

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
from distutils.core import setup
1+
from setuptools import setup
2+
23
setup(
34
name='testgres',
45
packages=['testgres'],
56
version='0.4.0',
6-
description='Testing utility for postgresql and its extensions',
7+
description='Testing utility for PostgreSQL and its extensions',
78
license='PostgreSQL',
89
author='Ildar Musin',
910
author_email='[email protected]',

testgres/tests/__init__.py

Whitespace-only changes.
File renamed without changes.

0 commit comments

Comments
 (0)