Django unittests not automatically detected
Just getting started with Fleet so forgive my ignorance.
I have configured my run.json file correctly to handle setting up a run server and added a python interpreter via the "Configure a Python interpreter for the workspace" panel in settings (https://www.jetbrains.com/help/fleet/getting-started-with-python.html#configure_settings_for_the_workspace) this gets me a runserver and a debugger without any issues.
Now I'm trying to get unit tests working, according to the documentation (https://www.jetbrains.com/help/fleet/using-unittest.html) smart mode should automatically pick these up and allow me to run them but I am not getting the arrow in my IDE to do so.
My setup is as following:
OS: Windows 10 10.0.19044 running WSL install of Ubuntu 20.04
Python: 3.6.15 installed via virtualenvwrapper
Django: 1.11.12
Fleet: 1.9.231 Public Preview
Please sign in to leave a comment.
Peter Dermott,
Hey, can you share your `run.json` for Django runserver run and debug config. It will help me a lot.
Arnav Agyeya
Sure thing
Can you please provide a sample project/code to reproduce? It works for me with a simple class like so:
Though there is an issue with pytest: FL-15724 Pytest tests are not automatically detected
Thanks Peter Dermott.
Andrey Dernov, can you try with django tests. Something like
I am able to run it with the following config in run.json, but it does run in debug mode: