From ead1f8a868f98c523a87784dc7813f75f2515dbf Mon Sep 17 00:00:00 2001 From: Keivan Beigi Date: Thu, 12 Sep 2013 13:00:49 -0700 Subject: [PATCH] custom ncrunch config with fast running tests. (excludes DB/Integration tests) --- NzbDrone.Api/NzbDrone.Api.ncrunchproject | 16 +++++++++------- .../NzbDrone.Common.Test.ncrunchproject | 10 +++++----- NzbDrone.Common/NzbDrone.Common.ncrunchproject | 15 +++++++++------ NzbDrone.Core.Test/Framework/DbTest.cs | 4 ++-- .../ParserTests/QualityParserFixture.cs | 2 +- NzbDrone.Core/NzbDrone.Core.ncrunchproject | 14 ++++++++------ .../NzbDrone.Test.Common.ncrunchproject | 15 +++++++++------ .../NzbDrone.Test.Dummy.ncrunchproject | 15 +++++++++------ .../NzbDrone.Update.Test.ncrunchproject | 10 +++++----- NzbDrone.Update/NzbDrone.Update.ncrunchproject | 15 +++++++++------ NzbDrone.ncrunchsolution | 5 +++-- .../ServiceInstall/ServiceInstall.ncrunchproject | 14 ++++++++------ .../ServiceUninstall.ncrunchproject | 14 ++++++++------ 13 files changed, 85 insertions(+), 64 deletions(-) diff --git a/NzbDrone.Api/NzbDrone.Api.ncrunchproject b/NzbDrone.Api/NzbDrone.Api.ncrunchproject index 575717ac8..6a13a8251 100644 --- a/NzbDrone.Api/NzbDrone.Api.ncrunchproject +++ b/NzbDrone.Api/NzbDrone.Api.ncrunchproject @@ -1,8 +1,8 @@ false - false + true false - true + false false false false @@ -12,9 +12,11 @@ false true true - 60000 - - - - AutoDetect + 500 + Debug + x86 + + x86 + STA + x86 \ No newline at end of file diff --git a/NzbDrone.Common.Test/NzbDrone.Common.Test.ncrunchproject b/NzbDrone.Common.Test/NzbDrone.Common.Test.ncrunchproject index 12a3cf5f9..f86981c3e 100644 --- a/NzbDrone.Common.Test/NzbDrone.Common.Test.ncrunchproject +++ b/NzbDrone.Common.Test/NzbDrone.Common.Test.ncrunchproject @@ -2,7 +2,7 @@ false true false - true + false false false false @@ -12,11 +12,11 @@ false true true - 60000 - - + 500 + Debug + x86 - AutoDetect + x86 STA x86 diff --git a/NzbDrone.Common/NzbDrone.Common.ncrunchproject b/NzbDrone.Common/NzbDrone.Common.ncrunchproject index 8641d3614..6a13a8251 100644 --- a/NzbDrone.Common/NzbDrone.Common.ncrunchproject +++ b/NzbDrone.Common/NzbDrone.Common.ncrunchproject @@ -1,8 +1,8 @@ false - false + true false - true + false false false false @@ -12,8 +12,11 @@ false true true - 60000 - - - AutoDetect + 500 + Debug + x86 + + x86 + STA + x86 \ No newline at end of file diff --git a/NzbDrone.Core.Test/Framework/DbTest.cs b/NzbDrone.Core.Test/Framework/DbTest.cs index 84956ef47..25c19a9bc 100644 --- a/NzbDrone.Core.Test/Framework/DbTest.cs +++ b/NzbDrone.Core.Test/Framework/DbTest.cs @@ -13,7 +13,7 @@ using NzbDrone.Core.Messaging; namespace NzbDrone.Core.Test.Framework { - [Category("DbTest")] + public abstract class DbTest : DbTest where TSubject : class where TModel : ModelBase, new() @@ -62,7 +62,7 @@ namespace NzbDrone.Core.Test.Framework - + [Category("DbTest")] public abstract class DbTest : CoreTest { private ITestDatabase _db; diff --git a/NzbDrone.Core.Test/ParserTests/QualityParserFixture.cs b/NzbDrone.Core.Test/ParserTests/QualityParserFixture.cs index 8e36c332d..3eb98a5b9 100644 --- a/NzbDrone.Core.Test/ParserTests/QualityParserFixture.cs +++ b/NzbDrone.Core.Test/ParserTests/QualityParserFixture.cs @@ -76,7 +76,6 @@ namespace NzbDrone.Core.Test.ParserTests [TestCase("S07E23.mkv ", false)] [TestCase("Two.and.a.Half.Men.S08E05.720p.HDTV.X264-DIMENSION", false)] [TestCase("Sonny.With.a.Chance.S02E15.mkv", false)] - [TestCase("The Big Bang Theory.S03E01.The Electric Can Opener Fluctuation.m2ts", false)] [TestCase(@"E:\Downloads\tv\The.Big.Bang.Theory.S01E01.720p.HDTV\ajifajjjeaeaeqwer_eppj.avi", false)] public void should_parse_hdtv720p_quality(string title, bool proper) { @@ -121,6 +120,7 @@ namespace NzbDrone.Core.Test.ParserTests [TestCase("WEEDS.S03E01-06.DUAL.Bluray.AC3.-HELLYWOOD.avi", false)] [TestCase("Chuck - S01E03 - Come Fly With Me - 720p BluRay.mkv", false)] + [TestCase("The Big Bang Theory.S03E01.The Electric Can Opener Fluctuation.m2ts", false)] public void should_parse_bluray720p_quality(string title, bool proper) { ParseAndVerifyQuality(title, Quality.Bluray720p, proper); diff --git a/NzbDrone.Core/NzbDrone.Core.ncrunchproject b/NzbDrone.Core/NzbDrone.Core.ncrunchproject index 73e1ebbb9..9d9968738 100644 --- a/NzbDrone.Core/NzbDrone.Core.ncrunchproject +++ b/NzbDrone.Core/NzbDrone.Core.ncrunchproject @@ -1,8 +1,8 @@ false - false + true false - true + false false false false @@ -12,10 +12,12 @@ false true true - 60000 - - + 500 + Debug + x86 - AutoDetect + x86 + STA + x86 PostBuildEventDisabled \ No newline at end of file diff --git a/NzbDrone.Test.Common/NzbDrone.Test.Common.ncrunchproject b/NzbDrone.Test.Common/NzbDrone.Test.Common.ncrunchproject index 8641d3614..6a13a8251 100644 --- a/NzbDrone.Test.Common/NzbDrone.Test.Common.ncrunchproject +++ b/NzbDrone.Test.Common/NzbDrone.Test.Common.ncrunchproject @@ -1,8 +1,8 @@ false - false + true false - true + false false false false @@ -12,8 +12,11 @@ false true true - 60000 - - - AutoDetect + 500 + Debug + x86 + + x86 + STA + x86 \ No newline at end of file diff --git a/NzbDrone.Test.Dummy/NzbDrone.Test.Dummy.ncrunchproject b/NzbDrone.Test.Dummy/NzbDrone.Test.Dummy.ncrunchproject index 8641d3614..6a13a8251 100644 --- a/NzbDrone.Test.Dummy/NzbDrone.Test.Dummy.ncrunchproject +++ b/NzbDrone.Test.Dummy/NzbDrone.Test.Dummy.ncrunchproject @@ -1,8 +1,8 @@ false - false + true false - true + false false false false @@ -12,8 +12,11 @@ false true true - 60000 - - - AutoDetect + 500 + Debug + x86 + + x86 + STA + x86 \ No newline at end of file diff --git a/NzbDrone.Update.Test/NzbDrone.Update.Test.ncrunchproject b/NzbDrone.Update.Test/NzbDrone.Update.Test.ncrunchproject index 514d01a85..6a13a8251 100644 --- a/NzbDrone.Update.Test/NzbDrone.Update.Test.ncrunchproject +++ b/NzbDrone.Update.Test/NzbDrone.Update.Test.ncrunchproject @@ -2,7 +2,7 @@ false true false - true + false false false false @@ -12,11 +12,11 @@ false true true - 60000 - - + 500 + Debug + x86 - AutoDetect + x86 STA x86 \ No newline at end of file diff --git a/NzbDrone.Update/NzbDrone.Update.ncrunchproject b/NzbDrone.Update/NzbDrone.Update.ncrunchproject index 8641d3614..6a13a8251 100644 --- a/NzbDrone.Update/NzbDrone.Update.ncrunchproject +++ b/NzbDrone.Update/NzbDrone.Update.ncrunchproject @@ -1,8 +1,8 @@ false - false + true false - true + false false false false @@ -12,8 +12,11 @@ false true true - 60000 - - - AutoDetect + 500 + Debug + x86 + + x86 + STA + x86 \ No newline at end of file diff --git a/NzbDrone.ncrunchsolution b/NzbDrone.ncrunchsolution index 6cb47a29a..04f007565 100644 --- a/NzbDrone.ncrunchsolution +++ b/NzbDrone.ncrunchsolution @@ -1,12 +1,13 @@ 1 - False + True true + true UseDynamicAnalysis Disabled Disabled Disabled - 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 + 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;Fast:DlN0cnVjdHVyYWxOb2RlBAAAABNEb2VzTm90SGF2ZUNhdGVnb3J5D0ludGVncmF0aW9uVGVzdBNEb2VzTm90SGF2ZUNhdGVnb3J5BkRiVGVzdApJc0ltcGFjdGVkCUlzRmFpbGluZwAAAAAAAAAAAQAAAA== \ No newline at end of file diff --git a/ServiceHelpers/ServiceInstall/ServiceInstall.ncrunchproject b/ServiceHelpers/ServiceInstall/ServiceInstall.ncrunchproject index 73e1ebbb9..9d9968738 100644 --- a/ServiceHelpers/ServiceInstall/ServiceInstall.ncrunchproject +++ b/ServiceHelpers/ServiceInstall/ServiceInstall.ncrunchproject @@ -1,8 +1,8 @@ false - false + true false - true + false false false false @@ -12,10 +12,12 @@ false true true - 60000 - - + 500 + Debug + x86 - AutoDetect + x86 + STA + x86 PostBuildEventDisabled \ No newline at end of file diff --git a/ServiceHelpers/ServiceUninstall/ServiceUninstall.ncrunchproject b/ServiceHelpers/ServiceUninstall/ServiceUninstall.ncrunchproject index 73e1ebbb9..9d9968738 100644 --- a/ServiceHelpers/ServiceUninstall/ServiceUninstall.ncrunchproject +++ b/ServiceHelpers/ServiceUninstall/ServiceUninstall.ncrunchproject @@ -1,8 +1,8 @@ false - false + true false - true + false false false false @@ -12,10 +12,12 @@ false true true - 60000 - - + 500 + Debug + x86 - AutoDetect + x86 + STA + x86 PostBuildEventDisabled \ No newline at end of file