Open kenbot opened 4 months ago
I guess it depends on how you are running and your hardware. On my laptop using Visual Studio 2022 it takes 5 seconds total.
Edit: Even on appveyor they seem to be taking 8-10 seconds total: https://ci.appveyor.com/project/hobomaster22/doomlauncher/builds/49998394
Ohhhhhh that's interesting. Maybe my laptop is just old (2018)? I'll just do #302 without touching this, and then figure out what's going on afterwards. Cheers. 👍
On my machine the tests take almost a minute, with only 100 odd tests. It sort of works now, but it doesn't scale. The solution to #302 wants granular isolated tests, which do a lot of clearing the database. This and deepening test coverage significantly slow it down.
The slowness is caused by repeatedly opening Sqlite connections on every request, each of which opens an OS file handle.
Options:
If you're happy with 3, I'll probably fold it into it's own commit inside the PR for #302.