PyCharm 2020.2.2: debugging pytest is extremely slow compared with 2020.1.4

I have a project with over 1200+ pytest unit tests. Up to 2020.1.4, running all the tests via the debugger would take 1 min and 15 seconds. With 2020.2.2 it runs for over 5 minutes.

Same happens when debugging only one test function. With 2020.1.4 it would take 6 seconds to reach a breakpoint on the first line. With 2020.2.2 it takes 19 seconds for the same operation.

Is anybody also experiencing this and/or has a solution?

I'm running on a 2015 MacBook Pro, with 16GB RAM using Python 3.8.


Comment actions Permalink

Hi, is it possible to provide code sample to reproduce the issue (if possible, please provide in the related issue

Comment actions Permalink

Having the same issue - it wasn't until a recent update that tests started taking exponentially longer


Please sign in to leave a comment.