imranariffin / aiotaskq

A simple asynchronous task queue
MIT License
4 stars 1 forks source link

Fix coverage not covering sub-process #28

Closed imranariffin closed 1 year ago

imranariffin commented 2 years ago

Since #20, in some tests (e.g. test_integration.test_sync_and_async_parity__simple_app) we're starting the worker in a sub-process, and coverage doesn't count anything in worker.py. I tried following this guide, but I couldn't get it to work. Maybe I missed something.

We should consider either:

  1. Start the worker using multiprocessing instead of subprocess
  2. Somehow follow the guide correctly