Unit test notifications taking ages to be spoken by NVDA

I am using PyCharm 2024.2.3 on Windows 11 with the NVDA screen reader.

 

I've set notifications up so that they interrupt the current screen reader output.

I have set the Test Execution Completed notification up to show a balloon.

 

My projects are in an Ubuntu WSL instance. I have opened them in PyCharm using the WSL file share, and I have a virtual environment setup in WSL too.

 

My problem is that unit tests seem very, very slow to run. A particularly bad offender has 800 unit tests. ON my Mac it takes about 8 seconds to run them. On Windows, it takes maybe 2-3 minutes.

However, if I go into the test results tree, it shows as completing in anywhere from 7 to 25 seconds.

 

I asked a sighted colleague to watch. What happens is that the tests all run in a reasonable time, and the balloon notification pops up to tell me that. But then a couple of minutes later, NVDA speaks the results. At this point, my colleague said he didn't notice anything else visually happening.

 

Other test suites are also slow, but nothing like as bad as this one. So I don't think that it is always a couple of minutes lag between the end and the announcement but none of them are quick.

 

I've not noticed this problem with other announcements. For example, if I do a git fetch it speaks the result fairly quickly.

 

Any idea what the problem might be?

 

I guess I can just use alt+4 and see what's going on there but it would be nice if the notifications worked properly. I do find that if I start moving the focus around then I probably won't get the notification at all.

 

I think maybe these notifications do depend a little on where the focus is. I find this on my Mac too - sometimes it doesn't speak the test results and I have to run a few times before it does. Sometimes I move focus about and that fixes it, sometimes just a repeat does it.
 

0

请先登录再写评论。