The thing to note is this is 2026, and we have full IDEs in web browsers, so the need to download, install, or do anything that modifies your computer is basically nil
My present employer needed to do a coding test, and they had one set up on one of these sites. It presents a text editor with the function you write, and you write it. You can then click the green arrow to run the program with the test cases and see the results. If you make a syntax error, the compiler output is shown. They even say to try their practice test which runs through the whole thing to make sure your browser settings work and to get familiar with the system. Once you're ready, you click go and the real test starts - they tell you how long you need to set aside for a distraction-free test.
Once you click go, if the test passes, you can submit your code, do another question or revise your code some more.
All you need is a web browser to do the test. Gets rid of any issues you might run into - environment (sure most people use Windows, but what if your recruit is using a Mac? Or LInux?), licensing (if you want the user to debug code, you might need to license tools for doing so, or if you use Visual Studio, they need a license), etc.,
In person tests? Well, that's what laptops are for - you provide them a base set up laptop with all the tools set up and let them have a go at it.
These days I'm wary of anything that requires a download. I needed a TFTP server a few months ago, and had a heck of a time trying to get copyparty set up on my Linux machine. Oddly it worked on my Windows work PC, so I ran it there. I went with copyparty because it's an open source does-every-file-sharing-protocol-known-to-man server, rather than daring to try one of the many Windows TFTP server programs out there