Tweaking our Nancy unit tests to run in 5 minutes instead of 40
Our product has over 4300 tests. The server side UI tests are around 1500 in total but was causing the full test run to take 20 minutes. Recently adding only a handful of tests increased the total test run time to over 40 minutes. It turns out the useful Browser
testing component from the Nancy framework was expensive to create for each of our 1500 server side UI unit tests. Changing our Browser and bootstrapper configuration to run once per suite rather than once per test, resulted in our total test time being reduced to just over 5 minutes! That saving was worth the trade-offs we had to make. Continue reading