diff --git a/.gitignore b/.gitignore
index be082609e..10d2ec7b3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -46,4 +46,5 @@ UpdateLogs/
NzbDrone.Web/MediaCover
NzbDrone.fpr
nzbdrone.log*txt
-_rawPackage_service/
\ No newline at end of file
+_rawPackage_service/
+_NCrunch_*
\ No newline at end of file
diff --git a/NzbDrone.Common.Test/DiskProviderFixture.cs b/NzbDrone.Common.Test/DiskProviderFixture.cs
index c29924494..a4762bbdd 100644
--- a/NzbDrone.Common.Test/DiskProviderFixture.cs
+++ b/NzbDrone.Common.Test/DiskProviderFixture.cs
@@ -62,7 +62,7 @@ namespace NzbDrone.Common.Test
var targetPath = Path.Combine(BinFolderCopy.FullName, "file.move");
diskProvider.MoveFile(BinFolderCopy.GetFiles("*.dll", SearchOption.AllDirectories).First().FullName, targetPath);
- diskProvider.MoveFile(BinFolderCopy.GetFiles("*.dll", SearchOption.AllDirectories).First().FullName, targetPath);
+ diskProvider.MoveFile(BinFolderCopy.GetFiles("*.pdb", SearchOption.AllDirectories).First().FullName, targetPath);
File.Exists(targetPath).Should().BeTrue();
}
diff --git a/NzbDrone.Common.Test/NzbDrone.Common.Test.ncrunchproject b/NzbDrone.Common.Test/NzbDrone.Common.Test.ncrunchproject
index 8641d3614..c2e8bc20c 100644
--- a/NzbDrone.Common.Test/NzbDrone.Common.Test.ncrunchproject
+++ b/NzbDrone.Common.Test/NzbDrone.Common.Test.ncrunchproject
@@ -13,7 +13,24 @@
true
true
60000
-
-
+
+
AutoDetect
+
+
+ NzbDrone.Common.Test.EnviromentProviderTest.ApplicationPath_should_find_root_in_current_folder
+
+
+ NzbDrone.Common.Test.ProcessProviderTests.Should_be_able_to_kill_procces
+
+
+ NzbDrone.Common.Test.ProcessProviderTests.Should_be_able_to_start_process
+
+
+ NzbDrone.Common.Test.ServiceProviderTests.Service_should_be_installed_and_then_uninstalled
+
+
+ NzbDrone.Common.Test.ServiceProviderTests.Should_be_able_to_start_and_stop_service
+
+
\ No newline at end of file
diff --git a/NzbDrone.Common/EnvironmentProvider.cs b/NzbDrone.Common/EnvironmentProvider.cs
index 5a146742c..e080449c0 100644
--- a/NzbDrone.Common/EnvironmentProvider.cs
+++ b/NzbDrone.Common/EnvironmentProvider.cs
@@ -64,7 +64,6 @@ namespace NzbDrone.Common
if (!string.IsNullOrWhiteSpace(applicationPath))
return applicationPath;
-
applicationPath = CrawlToRoot(Environment.CurrentDirectory);
if (!string.IsNullOrWhiteSpace(applicationPath))
return applicationPath;
@@ -83,6 +82,9 @@ namespace NzbDrone.Common
public string CrawlToRoot(string dir)
{
+ if (String.IsNullOrWhiteSpace(dir))
+ return null;
+
var directoryInfo = new DirectoryInfo(dir);
while (!IsRoot(directoryInfo))
diff --git a/NzbDrone.Core.Test/NzbDrone.Core.Test.ncrunchproject b/NzbDrone.Core.Test/NzbDrone.Core.Test.ncrunchproject
index 8641d3614..19f185295 100644
--- a/NzbDrone.Core.Test/NzbDrone.Core.Test.ncrunchproject
+++ b/NzbDrone.Core.Test/NzbDrone.Core.Test.ncrunchproject
@@ -13,7 +13,15 @@
true
true
60000
-
-
+
+
AutoDetect
+
+
+ NzbDrone.Core.Test.ProviderTests.NewznabProviderTest.CheckHostname_should_log_error_and_throw_exception_if_dnsHostname_is_invalid
+
+
+ NzbDrone.Core.Test.Integeration.ServiceIntegerationFixture.should_be_able_to_submit_exceptions
+
+
\ No newline at end of file
diff --git a/NzbDrone.Web.UI.Test/NzbDrone.Web.UI.Automation.ncrunchproject b/NzbDrone.Web.UI.Test/NzbDrone.Web.UI.Automation.ncrunchproject
index 8641d3614..53613377d 100644
--- a/NzbDrone.Web.UI.Test/NzbDrone.Web.UI.Automation.ncrunchproject
+++ b/NzbDrone.Web.UI.Test/NzbDrone.Web.UI.Automation.ncrunchproject
@@ -13,7 +13,21 @@
true
true
60000
-
-
+
+
AutoDetect
+
+
+ NzbDrone.Web.UI.Automation.BasicPageFixture.HistoryPage
+
+
+ NzbDrone.Web.UI.Automation.BasicPageFixture.HomePage
+
+
+ NzbDrone.Web.UI.Automation.BasicPageFixture.MissingPage
+
+
+ NzbDrone.Web.UI.Automation.BasicPageFixture.SettingsPage
+
+
\ No newline at end of file
diff --git a/NzbDrone.ncrunchsolution b/NzbDrone.ncrunchsolution
index ee1975f67..26bb12822 100644
--- a/NzbDrone.ncrunchsolution
+++ b/NzbDrone.ncrunchsolution
@@ -6,6 +6,7 @@
UseStaticAnalysis
UseStaticAnalysis
UseStaticAnalysis
+ NzbDrone.Web\**.*
Run all tests automatically:BFRydWU=;Run all tests manually:BUZhbHNl;Run impacted tests automatically, others manually (experimental!):CklzSW1wYWN0ZWQ=;Run pinned tests automatically, others manually:CElzUGlubmVk