public static void SetupTestRun() { if (IsRun) { return; } string msBuild = ToolLocationHelper.GetPathToBuildToolsFile("msbuild.exe", "16.0"); var config = new SpecsForMvcConfig(); config.UseIISExpress() .With(Project.Named("WeatherApp.FrontEnd")) .UseMSBuildExecutableAt(msBuild); config.BuildRoutesUsing(r => RouteConfig.RegisterRoutes(r)); config.UseBrowser(BrowserDriver.InternetExplorer); config.PostOperationDelay(new TimeSpan(0, 0, 0, 4)); _host = new SpecsForIntegrationHost(config); _host.Start(); app = new MvcWebApp(); IsRun = true; }