# Is it possible to run tests with Pycharm

**URL:** <https://forum.djangoproject.com/t/is-it-possible-to-run-tests-with-pycharm/3926>\
**Category:** Django Internals\
**Created:** [August 17, 2020, 11:44am UTC](https://forum.djangoproject.com/t/is-it-possible-to-run-tests-with-pycharm/3926 "2020-08-17T11:44:00Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![medmunds](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/medmunds/32/22140_2.png) [@medmunds](https://forum.djangoproject.com/u/medmunds)\
**Post date:** [October 6, 2026, 5:26pm UTC](https://forum.djangoproject.com/t/is-it-possible-to-run-tests-with-pycharm/3926/13 "2026-10-06T17:26:44Z")

</div>

@KotlinIsland that sounds amazing, thank you! (And it will be useful for some other projects too.) I’ll check it out in the next EAP.

Django uses its own [`DiscoverRunner`](https://github.com/django/django/blob/8c34887b1ad8bb3ec61c6e713442dab3c643d557/django/test/runner.py#L754), which is essential for sequencing tests and additional setup/teardown. But the `DiscoverRunner` delegates running the tests [in `run_suite()`](https://github.com/django/django/blob/8c34887b1ad8bb3ec61c6e713442dab3c643d557/django/test/runner.py#L1111-L1119) to a [`unittest.TextTestRunner` instance](https://github.com/django/django/blob/8c34887b1ad8bb3ec61c6e713442dab3c643d557/django/test/runner.py#L759) it creates (with [certain cli options](https://github.com/django/django/blob/8c34887b1ad8bb3ec61c6e713442dab3c643d557/django/test/runner.py#L1096-L1104)). Will that satisfy the requirement to “run the tests with `unittest.TextTestRunner`”?

* * *

Separately, on the pytest side, there was some previous discussion and prototyping in this thread from 2024: [Anyone use pytest for running Django's test suite?](https://forum.djangoproject.com/t/anyone-use-pytest-for-running-djangos-test-suite/36959). (It’s a bit more complicated than I thought. Probably best to resurrect that thread or start a new one for any further pytest discussion.)

---

_[View the full topic](https://forum.djangoproject.com/t/is-it-possible-to-run-tests-with-pycharm/3926)._
