crossbario / crossbario/autobahn-python

Document test strategies for user-level WAMP

Open
#1,391 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

docs enhancement needs-discussion
Dominant language
Python
Stars
2.5k
Forks
768
PR merge metrics
No merged PRs in 30d

Description

I am trying to set up unit tests to validate my WAMP component.
After taking a look at the different tests implemented in the autobahn project, I realized that these used the twisted module.
Now that the unittest module of python natively integrates a means of testing coroutines via the unittest.IsolatedAsyncioTestCase class, since python 3.8, is it possible to provide a test of a WAMP component via the asyncio and uniittest modules ?

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 reading autobahn/wamp/test/test_component.py and compare its Twisted-based tests with Python's unittest.IsolatedAsyncioTestCase and asyncio support. Document or demonstrate a user-level WAMP component testing strategy that uses those standard-library facilities, with the completed guidance or example showing how coroutine tests can validate a WAMP component.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
documentation, testing
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.