How can I figure out why testcafe is so slow in Docker

Viewed 660

I run our integration tests using testcafe 23.0 in docker. However, the tests often take a long time to start. I recorded the browser and it seems to take a very long time to do nothing:

https://youtu.be/9W6VosNMbhg

It takes 2 minutes to load the page. However, this is instant on my desktop.

How would I start to figure out this problem?

2 Answers

I figured out that that the testcafe proxy was being slowed down. After some limited success with passing --no-proxy-server to chrome, I made the networking in docker more permissive, and that stopped the slowdown.

You can use command option -d, --debug-mode # and docker you can use

docker logs --follow ContainerName/ContainerID, you can find how to work docker log here

You can find error log because slow you docker container

Related