Setup
- Download and setup
- pipenv install django
- pipenv install django
- pipenv install appmap
- pipenv shell
- python manage.py migrate
Trying to run tests the Django way
- run
APPMAP=true python manage.py test - Open the Appmap extension in VS code and note that there are only
record_requestsin APPMAPS
How about running tests with unittest instead of Django?
- run
APPMAP=true python -m unittest -v polls.tests - Note the error
django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.
How about using appmap.unittest.TestCase?
- Switch to branch
appmap-testcase - run
APPMAP=true python manage.py test - Note the error
AttributeError: type object '_FailedTest' has no attribute 'tests' - run
APPMAP=true python -m unittest -v polls.tests - Note same error