Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to write WAMP component unit tests #1312

Open
oberstet opened this issue Feb 17, 2020 · 2 comments
Open

How to write WAMP component unit tests #1312

oberstet opened this issue Feb 17, 2020 · 2 comments

Comments

@oberstet
Copy link
Contributor

We should have a best-practive guide (doc pages / code examples) of how to write unit tests using

  • pytest vs tx trial
  • appsession vs component
@oberstet
Copy link
Contributor Author

für mich ist die Verwendung des Reactors bezüglich asyncio und twisted etwas unklar. Das readme aus autobahn->asyncio->test hat mir etwas weitergeholfen. es existieren die module pytest-twisted und pytest-asyncio. Es wäre gut wenn die Verwendung des Reactors aus pytest heraus erläutert werden würde. pytest --reactor=<twisted, asyncio> twisted: --reactor=default,qt5reactor,asyncio}

@sergio-bershadsky
Copy link

Hi! First of all I would like to thank authors and community for this awesome implementation of WAMP.

During big application development developer faces big challenges in integration between components on different levels. Testing is huge topic and should considered as first class task in creating framework eco-system.

I did not find a good references in source code that will explain me the best approach of how to test in Autobanh env. I did not find step-by-step tutorial. Theoretical references on how to test distributed systems. Also during wandering source code did not find any base UntiTest classes and utilities that helps to bootstrap TestCases. No LiveTesting approaches.

I would like to reference to Django apps development where you can find an excellent packed documentation about testing, set of toolchains and examples.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants