crossbario / crossbario/autobahn-python

Test coverage

Open
#1,136 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

CI-CD enhancement test
Dominant language
Python
Stars
2.5k
Forks
768
PR merge metrics
No merged PRs in 30d

Description

We should work on increasing unit test coverage. Currently, we stand at 62%.

This is an umbrella issue to anchor/reference related effors.


The following files are currently not covered at all - and hence don't show up in the coverage reports!

autobahn/nvx/_utf8validator.c
autobahn/nvx/_utf8validator.py
autobahn/twisted/cryptosign.py
autobahn/twisted/forwarder.py
autobahn/twisted/resource.py
autobahn/websocket/compress_snappy.py

current test coverage:

Name                                                                          Stmts   Miss  Cover
-------------------------------------------------------------------------------------------------
.tox/py37-asyncio/lib/python3.7/site-packages/autobahn/asyncio/__init__.py        9      0   100%
.tox/py37-asyncio/lib/python3.7/site-packages/autobahn/asyncio/component.py     170    111    35%
.tox/py37-asyncio/lib/python3.7/site-packages/autobahn/asyncio/rawsocket.py     275    197    28%
.tox/py37-asyncio/lib/python3.7/site-packages/autobahn/asyncio/util.py           14     10    29%
.tox/py37-asyncio/lib/python3.7/site-packages/autobahn/asyncio/wamp.py          108     28    74%
.tox/py37-asyncio/lib/python3.7/site-packages/autobahn/asyncio/websocket.py     159     87    45%
autobahn/__init__.py                                                              3      0   100%
autobahn/_version.py                                                              1      0   100%
autobahn/rawsocket/__init__.py                                                    0      0   100%
autobahn/rawsocket/util.py                                                       52      2    96%
autobahn/twisted/__init__.py                                                     13      0   100%
autobahn/twisted/choosereactor.py                                                91     51    44%
autobahn/twisted/component.py                                                   164     90    45%
autobahn/twisted/rawsocket.py                                                   217     85    61%
autobahn/twisted/util.py                                                         44     25    43%
autobahn/twisted/wamp.py                                                        311    174    44%
autobahn/twisted/websocket.py                                                   250    115    54%
autobahn/util.py                                                                249    107    57%
autobahn/wamp/__init__.py                                                         6      0   100%
autobahn/wamp/auth.py                                                           271    104    62%
autobahn/wamp/component.py                                                      396    150    62%
autobahn/wamp/cryptobox.py                                                      121     83    31%
autobahn/wamp/cryptosign.py                                                     243    109    55%
autobahn/wamp/exception.py                                                       65      3    95%
autobahn/wamp/interfaces.py                                                     120      0   100%
autobahn/wamp/message.py                                                       1963    632    68%
autobahn/wamp/protocol.py                                                       832    287    66%
autobahn/wamp/request.py                                                         86      4    95%
autobahn/wamp/role.py                                                           101      3    97%
autobahn/wamp/serializer.py                                                     322     62    81%
autobahn/wamp/types.py                                                          404    118    71%
autobahn/wamp/uri.py                                                            150     16    89%
autobahn/wamp/websocket.py                                                      133     44    67%
autobahn/websocket/__init__.py                                                    4      0   100%
autobahn/websocket/compress.py                                                   21      6    71%
autobahn/websocket/compress_base.py                                               6      0   100%
autobahn/websocket/compress_bzip2.py                                            162    121    25%
autobahn/websocket/compress_deflate.py                                          246    168    32%
autobahn/websocket/interfaces.py                                                 68      0   100%
autobahn/websocket/protocol.py                                                 1700    679    60%
autobahn/websocket/types.py                                                      91     33    64%
autobahn/websocket/utf8validator.py                                              75     42    44%
autobahn/websocket/util.py                                                       65      7    89%
autobahn/websocket/xormasker.py                                                  76     13    83%
-------------------------------------------------------------------------------------------------
TOTAL                                                                          9857   3766    62%

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the listed uncovered files and the existing coverage report, especially autobahn/nvx/_utf8validator.c, autobahn/nvx/_utf8validator.py, and the four Twisted or WebSocket modules. Identify the related test locations before adding coverage; done means the selected behavior is exercised by unit tests and the coverage report improves.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing-qa
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.