mirror of https://github.com/Radarr/Radarr
NCrunch works for unit tests
This commit is contained in:
parent
ebad87b81b
commit
35511a8b76
|
@ -46,4 +46,5 @@ UpdateLogs/
|
|||
NzbDrone.Web/MediaCover
|
||||
NzbDrone.fpr
|
||||
nzbdrone.log*txt
|
||||
_rawPackage_service/
|
||||
_rawPackage_service/
|
||||
_NCrunch_*
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -13,7 +13,24 @@
|
|||
<AnalyseExecutionTimes>true</AnalyseExecutionTimes>
|
||||
<IncludeStaticReferencesInWorkspace>true</IncludeStaticReferencesInWorkspace>
|
||||
<DefaultTestTimeout>60000</DefaultTestTimeout>
|
||||
<UseBuildConfiguration />
|
||||
<ProxyProcessPath />
|
||||
<UseBuildConfiguration></UseBuildConfiguration>
|
||||
<ProxyProcessPath></ProxyProcessPath>
|
||||
<UseCPUArchitecture>AutoDetect</UseCPUArchitecture>
|
||||
<IgnoredTests>
|
||||
<NamedTestSelector>
|
||||
<TestName>NzbDrone.Common.Test.EnviromentProviderTest.ApplicationPath_should_find_root_in_current_folder</TestName>
|
||||
</NamedTestSelector>
|
||||
<NamedTestSelector>
|
||||
<TestName>NzbDrone.Common.Test.ProcessProviderTests.Should_be_able_to_kill_procces</TestName>
|
||||
</NamedTestSelector>
|
||||
<NamedTestSelector>
|
||||
<TestName>NzbDrone.Common.Test.ProcessProviderTests.Should_be_able_to_start_process</TestName>
|
||||
</NamedTestSelector>
|
||||
<NamedTestSelector>
|
||||
<TestName>NzbDrone.Common.Test.ServiceProviderTests.Service_should_be_installed_and_then_uninstalled</TestName>
|
||||
</NamedTestSelector>
|
||||
<NamedTestSelector>
|
||||
<TestName>NzbDrone.Common.Test.ServiceProviderTests.Should_be_able_to_start_and_stop_service</TestName>
|
||||
</NamedTestSelector>
|
||||
</IgnoredTests>
|
||||
</ProjectConfiguration>
|
|
@ -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))
|
||||
|
|
|
@ -13,7 +13,15 @@
|
|||
<AnalyseExecutionTimes>true</AnalyseExecutionTimes>
|
||||
<IncludeStaticReferencesInWorkspace>true</IncludeStaticReferencesInWorkspace>
|
||||
<DefaultTestTimeout>60000</DefaultTestTimeout>
|
||||
<UseBuildConfiguration />
|
||||
<ProxyProcessPath />
|
||||
<UseBuildConfiguration></UseBuildConfiguration>
|
||||
<ProxyProcessPath></ProxyProcessPath>
|
||||
<UseCPUArchitecture>AutoDetect</UseCPUArchitecture>
|
||||
<IgnoredTests>
|
||||
<NamedTestSelector>
|
||||
<TestName>NzbDrone.Core.Test.ProviderTests.NewznabProviderTest.CheckHostname_should_log_error_and_throw_exception_if_dnsHostname_is_invalid</TestName>
|
||||
</NamedTestSelector>
|
||||
<NamedTestSelector>
|
||||
<TestName>NzbDrone.Core.Test.Integeration.ServiceIntegerationFixture.should_be_able_to_submit_exceptions</TestName>
|
||||
</NamedTestSelector>
|
||||
</IgnoredTests>
|
||||
</ProjectConfiguration>
|
|
@ -13,7 +13,21 @@
|
|||
<AnalyseExecutionTimes>true</AnalyseExecutionTimes>
|
||||
<IncludeStaticReferencesInWorkspace>true</IncludeStaticReferencesInWorkspace>
|
||||
<DefaultTestTimeout>60000</DefaultTestTimeout>
|
||||
<UseBuildConfiguration />
|
||||
<ProxyProcessPath />
|
||||
<UseBuildConfiguration></UseBuildConfiguration>
|
||||
<ProxyProcessPath></ProxyProcessPath>
|
||||
<UseCPUArchitecture>AutoDetect</UseCPUArchitecture>
|
||||
<IgnoredTests>
|
||||
<NamedTestSelector>
|
||||
<TestName>NzbDrone.Web.UI.Automation.BasicPageFixture.HistoryPage</TestName>
|
||||
</NamedTestSelector>
|
||||
<NamedTestSelector>
|
||||
<TestName>NzbDrone.Web.UI.Automation.BasicPageFixture.HomePage</TestName>
|
||||
</NamedTestSelector>
|
||||
<NamedTestSelector>
|
||||
<TestName>NzbDrone.Web.UI.Automation.BasicPageFixture.MissingPage</TestName>
|
||||
</NamedTestSelector>
|
||||
<NamedTestSelector>
|
||||
<TestName>NzbDrone.Web.UI.Automation.BasicPageFixture.SettingsPage</TestName>
|
||||
</NamedTestSelector>
|
||||
</IgnoredTests>
|
||||
</ProjectConfiguration>
|
|
@ -6,6 +6,7 @@
|
|||
<FrameworkUtilisationTypeForGallio>UseStaticAnalysis</FrameworkUtilisationTypeForGallio>
|
||||
<FrameworkUtilisationTypeForMSpec>UseStaticAnalysis</FrameworkUtilisationTypeForMSpec>
|
||||
<FrameworkUtilisationTypeForMSTest>UseStaticAnalysis</FrameworkUtilisationTypeForMSTest>
|
||||
<AdditionalFilesToInclude>NzbDrone.Web\**.*</AdditionalFilesToInclude>
|
||||
<EngineModes>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</EngineModes>
|
||||
<MetricsExclusionList>
|
||||
</MetricsExclusionList>
|
||||
|
|
Loading…
Reference in New Issue