Comments (14)
Ok, well I can't see anything in obvious... there's a lot going on in the repo so I guess trying to reduce it would be the next phase.
I can see if I can find it next time I'm looking this area.
from channels.
Thanks for the report. I'm not immediately sure what the problem is. Have you explored coverage's concurrency
option?
from channels.
I have. It wasn't clear to me which Daphne used so I tried every concurrency
option in their docs. I also adding coverage directly to sitecustomize.py
as recommended in the docs but did not make any headway.
There are more details in the reproduction's README.md.
from channels.
I'd imagine you'd need a multi-value like multiprocessing,thread
🤔
from channels.
I just tried every combination of the concurrency options available to me:
multiprocessing,greenlet,thread
multiprocessing,greenlet
multiprocessing,thread
greenlet,multiprocessing
greenlet,thread
thread,multiprocessing
thread,greenlet
I am still unable to collect coverage. gevent
and eventlet
weren't dependencies of anything I am using so I didn't try them.
from channels.
@carltongibson I've created a smaller reproduction here: https://github.com/kierangillblueberry/code-coverage-ChannelsLiveServerTestCase_small
from channels.
Thanks @kierangillblueberry 👀
from channels.
Hey @carltongibson, following up on this. I can also take a stab at this fix but I'm not sure where to start. Any pointers would be helpful! Also happy to hop on a call if you think it'd be helpful.
from channels.
Hi @kierangillblueberry, I haven't had a chance to sit down with it to be honest. First pass would be to see if we can pick down exactly what's happening.
from channels.
parallel = True
Q: does coverage work running with just a single process (I guess yes)?
from channels.
Related Issues (20)
- Running ChannelsLiveServerTestCase does not create database for browser HOT 21
- "group_add" is not a known member of "None" HOT 1
- ProtocolTypeRouter.__call__() missing 1 required positional argument: 'send' HOT 1
- Feature request: WebTransport support in Django Channels HOT 1
- Question about versions HOT 1
- initkwargs wasn't set in result consumer HOT 7
- `TEST_CONFIG` key has code using it but seems to be broken and no longer documented HOT 2
- AttributeError: 'NoneType' object has no attribute 'group_add' HOT 1
- OriginValidator could raise exception/log message for denied connections HOT 1
- error in channel layer explanations HOT 2
- adding a check if group_name exists method for channel_layer HOT 1
- Small messages are getting concatenated HOT 1
- How can I change the schema in the database? HOT 1
- How to test send_json() contents when passing close=True HOT 2
- Handler declaration by decorator/annotation (in order to prevent potential method leaks) HOT 1
- django-q2 and django-channels together HOT 1
- Channel Layer's group_send() Not Working When Called From Django View HOT 3
- Add CORs middleware HOT 1
- Breakage in routing.py on django/main pre-5.1.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from channels.