Skip to content

Commit fc768b5

Browse files
committed
Add sample output from testing and coverage
1 parent 31855ae commit fc768b5

File tree

2 files changed

+82
-3
lines changed

2 files changed

+82
-3
lines changed

README.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ Python Sorted Containers
33

44
.. todo::
55

6-
* Update development page with test and coverage output.
76
* Rename github repo
87
* Replace bintrees in
98
* https://github.com/astropy/astropy

docs/development.rst

Lines changed: 82 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,93 @@ and run the tests.
6363
::
6464

6565
$ python setup.py test
66-
<todo>
66+
running test
67+
running egg_info
68+
writing sortedcontainers.egg-info/PKG-INFO
69+
writing dependency_links to sortedcontainers.egg-info/dependency_links.txt
70+
writing top-level names to sortedcontainers.egg-info/top_level.txt
71+
reading manifest file 'sortedcontainers.egg-info/SOURCES.txt'
72+
reading manifest template 'MANIFEST.in'
73+
writing manifest file 'sortedcontainers.egg-info/SOURCES.txt'
74+
running build_ext
75+
GLOB sdist-make: /Users/grantj/repos/python-sortedcontainers/setup.py
76+
py36 inst-nodeps: /Users/grantj/repos/python-sortedcontainers/.tox/dist/sortedcontainers-1.5.10.zip
77+
py36 installed: attrs==18.1.0,more-itertools==4.1.0,pluggy==0.6.0,py==1.5.3,pytest==3.5.1,six==1.11.0,sortedcontainers==1.5.10
78+
py36 runtests: PYTHONHASHSEED='365015869'
79+
py36 runtests: commands[0] | python -m pytest
80+
================================================= test session starts =================================================
81+
platform darwin -- Python 3.6.5, pytest-3.5.1, py-1.5.3, pluggy-0.6.0
82+
rootdir: /Users/grantj/repos/python-sortedcontainers, inifile: tox.ini
83+
collected 357 items
84+
85+
docs/introduction.rst . [ 0%]
86+
sortedcontainers/__init__.py . [ 0%]
87+
sortedcontainers/sorteddict.py ........... [ 3%]
88+
sortedcontainers/sortedlist.py ..................................... [ 14%]
89+
sortedcontainers/sortedset.py ................. [ 18%]
90+
tests/benchmark_splits_fill.py . [ 19%]
91+
tests/sortedcollection.py . [ 19%]
92+
tests/test_coverage_sorteddict.py ................................................... [ 33%]
93+
tests/test_coverage_sortedkeylist_modulo.py ................................................................... [ 52%]
94+
tests/test_coverage_sortedkeylist_negate.py ....................................................... [ 68%]
95+
tests/test_coverage_sortedlist.py .......................................................... [ 84%]
96+
tests/test_coverage_sortedset.py .................................................. [ 98%]
97+
tests/test_stress_sorteddict.py .. [ 98%]
98+
tests/test_stress_sortedkeylist.py . [ 99%]
99+
tests/test_stress_sortedlist.py . [ 99%]
100+
tests/test_stress_sortedset.py .. [100%]
101+
102+
============================================= 357 passed in 10.86 seconds =============================================
103+
lint inst-nodeps: /Users/grantj/repos/python-sortedcontainers/.tox/dist/sortedcontainers-1.5.10.zip
104+
lint installed: astroid==1.6.4,isort==4.3.4,lazy-object-proxy==1.3.1,mccabe==0.6.1,pylint==1.9.0,six==1.11.0,sortedcontainers==1.5.10,wrapt==1.10.11
105+
lint runtests: PYTHONHASHSEED='365015869'
106+
lint runtests: commands[0] | pylint sortedcontainers
107+
Using config file /Users/grantj/repos/python-sortedcontainers/.pylintrc
108+
109+
--------------------------------------------------------------------
110+
Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)
111+
112+
_______________________________________________________ summary _______________________________________________________
113+
py36: commands succeeded
114+
lint: commands succeeded
67115

68116
Coverage testing uses `pytest-cov <https://pypi.org/project/pytest-cov/>`_:
69117

70118
::
71119

72-
$ todo
120+
$ python -m pytest --cov sortedcontainers --cov-report term-missing --cov-branch
121+
================================================= test session starts =================================================
122+
platform darwin -- Python 3.6.5, pytest-3.5.0, py-1.5.3, pluggy-0.6.0
123+
rootdir: /Users/grantj/repos/python-sortedcontainers, inifile: tox.ini
124+
plugins: cov-2.5.1, hypothesis-3.55.3
125+
collected 357 items
126+
127+
docs/introduction.rst . [ 0%]
128+
sortedcontainers/__init__.py . [ 0%]
129+
sortedcontainers/sorteddict.py ........... [ 3%]
130+
sortedcontainers/sortedlist.py ..................................... [ 14%]
131+
sortedcontainers/sortedset.py ................. [ 18%]
132+
tests/benchmark_splits_fill.py . [ 19%]
133+
tests/sortedcollection.py . [ 19%]
134+
tests/test_coverage_sorteddict.py ................................................... [ 33%]
135+
tests/test_coverage_sortedkeylist_modulo.py ................................................................... [ 52%]
136+
tests/test_coverage_sortedkeylist_negate.py ....................................................... [ 68%]
137+
tests/test_coverage_sortedlist.py .......................................................... [ 84%]
138+
tests/test_coverage_sortedset.py .................................................. [ 98%]
139+
tests/test_stress_sorteddict.py .. [ 98%]
140+
tests/test_stress_sortedkeylist.py . [ 99%]
141+
tests/test_stress_sortedlist.py . [ 99%]
142+
tests/test_stress_sortedset.py .. [100%]
143+
144+
---------- coverage: platform darwin, python 3.6.5-final-0 -----------
145+
Name Stmts Miss Branch BrPart Cover Missing
146+
----------------------------------------------------------------------------
147+
sortedcontainers/__init__.py 10 0 0 0 100%
148+
sortedcontainers/sorteddict.py 159 0 40 0 100%
149+
sortedcontainers/sortedlist.py 1001 8 420 3 99% 34-39, 44-45, 33->34, 785->787, 1429->1437
150+
sortedcontainers/sortedset.py 179 0 26 0 100%
151+
----------------------------------------------------------------------------
152+
TOTAL 1349 8 486 3 99%
73153

74154
It's normal to see coverage a little less than 100%. Some code is specific to
75155
the Python runtime.

0 commit comments

Comments
 (0)