Frequently asked questions ========================== I'm using Django 1.11+ and ``monkeytype run manage.py test`` generates no traces. --------------------------------------------------------------------------------- Django 1.11 enabled parallel test runs by default. This means your tests run in separate subprocesses; MonkeyType is tracing only the main supervisor process, which runs only Django code (that is excluded from tracing by the default code filter). To get traces, use ``--parallel 1`` when running your tests under MonkeyType tracing. I'm using Django, and I get an AppRegistryNotReady exception when I run monkeytype. ----------------------------------------------------------------------------------- You need to use the :meth:`~monkeytype.config.Config.cli_context` config method to call ``django.setup()``. Why did my test coverage measurement stop working? -------------------------------------------------- MonkeyType uses the same `sys.setprofile`_ hook that `coverage.py`_ uses to measure Python code coverage, so you can't use MonkeyType and coverage measurement together. If you want to run your tests under MonkeyType tracing, disable coverage measurement for that run, and vice versa. .. _coverage.py: https://coverage.readthedocs.io/ .. _sys.setprofile: https://docs.python.org/3/library/sys.html#sys.setprofile