Permalink
Browse files

UnitTest: Ignoring Visual Studio Test in NCrunch 2

  • Loading branch information...
1 parent bf0872e commit a4c55f1079f24411a68212ff4fc753bd4752efe7 @DerAlbertCom DerAlbertCom committed Jan 5, 2014
@@ -0,0 +1,24 @@
+<ProjectConfiguration>
+ <CopyReferencedAssembliesToWorkspace>false</CopyReferencedAssembliesToWorkspace>
+ <ConsiderInconclusiveTestsAsPassing>false</ConsiderInconclusiveTestsAsPassing>
+ <PreloadReferencedAssemblies>false</PreloadReferencedAssemblies>
+ <AllowDynamicCodeContractChecking>true</AllowDynamicCodeContractChecking>
+ <AllowStaticCodeContractChecking>false</AllowStaticCodeContractChecking>
+ <AllowCodeAnalysis>false</AllowCodeAnalysis>
+ <IgnoreThisComponentCompletely>false</IgnoreThisComponentCompletely>
+ <RunPreBuildEvents>false</RunPreBuildEvents>
+ <RunPostBuildEvents>false</RunPostBuildEvents>
+ <PreviouslyBuiltSuccessfully>true</PreviouslyBuiltSuccessfully>
+ <InstrumentAssembly>true</InstrumentAssembly>
+ <PreventSigningOfAssembly>false</PreventSigningOfAssembly>
+ <AnalyseExecutionTimes>true</AnalyseExecutionTimes>
+ <DetectStackOverflow>true</DetectStackOverflow>
+ <IncludeStaticReferencesInWorkspace>true</IncludeStaticReferencesInWorkspace>
+ <DefaultTestTimeout>60000</DefaultTestTimeout>
+ <UseBuildConfiguration />
+ <UseBuildPlatform />
+ <ProxyProcessPath />
+ <UseCPUArchitecture>AutoDetect</UseCPUArchitecture>
+ <MSTestThreadApartmentState>STA</MSTestThreadApartmentState>
+ <BuildProcessArchitecture>x86</BuildProcessArchitecture>
+</ProjectConfiguration>
View
@@ -1 +1 @@
-<Playlist Version="1.0"><Add Test="WebEssentialsTests.VSTestTest.VSTest_CanOpenSolution" /><Add Test="WebEssentialsTests.VSTestTest.VSTest_CanFindProjectItem" /></Playlist>
+<Playlist Version="1.0"><Add Test="WebEssentialsTests.VSTestTest.VSTest_CanOpenSolution" /><Add Test="WebEssentialsTests.VSTestTest.VSTest_CanFindProjectItem" /><Add Test="WebEssentialsTests.Tests.IntellisenseGeneration.Parsing_CollectionModel_Tests.CollectionModel_Property_ASimpleList_is_correct" /><Add Test="WebEssentialsTests.Tests.IntellisenseGeneration.Parsing_CollectionModel_Tests.CollectionModel_Property_AStringIList_is_correct" /><Add Test="WebEssentialsTests.Tests.IntellisenseGeneration.Parsing_CollectionModel_Tests.CollectionModel_Property_AStringIEnumerable_is_correct" /><Add Test="WebEssentialsTests.Tests.IntellisenseGeneration.Parsing_CollectionModel_Tests.CollectionModel_Property_AStringList_is_correct" /><Add Test="WebEssentialsTests.Tests.IntellisenseGeneration.Parsing_CollectionModel_Tests.CollectionModel_Property_AStringICollection_is_correct" /><Add Test="WebEssentialsTests.Tests.IntellisenseGeneration.Parsing_CollectionModel_Tests.CollectionModel_should_be_parsed" /><Add Test="WebEssentialsTests.Tests.IntellisenseGeneration.Parsing_CollectionModel_Tests.CollectionModel_Name_is_CollectionModel" /><Add Test="WebEssentialsTests.Tests.IntellisenseGeneration.Parsing_CollectionModel_Tests.CollectionModel_Property_AStringCollection_is_correct" /><Add Test="WebEssentialsTests.Tests.IntellisenseGeneration.Parsing_CollectionModel_Tests.CollectionModel_Property_ALongList_is_correct" /><Add Test="WebEssentialsTests.Tests.IntellisenseGeneration.Parsing_CollectionModel_Tests.CollectionModel_Property_AStringArray_is_correct" /><Add Test="WebEssentialsTests.Tests.IntellisenseGeneration.Parsing_SimpleClass_Tests.Simple_AString_is_correct" /><Add Test="WebEssentialsTests.Tests.IntellisenseGeneration.Parsing_SimpleNullable_Tests.SimpleNullable_ADateTime_property_is_correct" /><Add Test="WebEssentialsTests.Tests.IntellisenseGeneration.Parsing_SimpleClass_Tests.Simple_ASimple_property_is_correct" /><Add Test="WebEssentialsTests.Tests.IntellisenseGeneration.Parsing_SimpleNullable_Tests.SimpleNullable_Name_is_Simple" /><Add Test="WebEssentialsTests.Tests.IntellisenseGeneration.Parsing_SimpleClass_Tests.Simple_AnInt_is_correct" /><Add Test="WebEssentialsTests.Tests.IntellisenseGeneration.Parsing_SimpleNullable_Tests.SimpleNullable_ABool_is_correct" /><Add Test="WebEssentialsTests.Tests.IntellisenseGeneration.Parsing_SimpleClass_Tests.Simple_ABool_is_correct" /><Add Test="WebEssentialsTests.Tests.IntellisenseGeneration.Parsing_SimpleClass_Tests.Simple_ADateTime_property_is_correct" /><Add Test="WebEssentialsTests.Tests.IntellisenseGeneration.Parsing_SimpleNullable_Tests.SimpleNullable_should_be_parsed" /><Add Test="WebEssentialsTests.Tests.IntellisenseGeneration.Parsing_SimpleClass_Tests.Simple_should_be_parsed" /><Add Test="WebEssentialsTests.Tests.IntellisenseGeneration.Parsing_SimpleClass_Tests.Simple_Name_is_Simple" /><Add Test="WebEssentialsTests.Tests.IntellisenseGeneration.Parsing_SimpleNullable_Tests.SimpleNullable_AnInt_is_correct" /></Playlist>
@@ -1,12 +1,12 @@
<SolutionConfiguration>
<FileVersion>1</FileVersion>
- <AutoEnableOnStartup>True</AutoEnableOnStartup>
<AllowParallelTestExecution>true</AllowParallelTestExecution>
<AllowTestsToRunInParallelWithThemselves>true</AllowTestsToRunInParallelWithThemselves>
<FrameworkUtilisationTypeForNUnit>UseDynamicAnalysis</FrameworkUtilisationTypeForNUnit>
<FrameworkUtilisationTypeForGallio>UseStaticAnalysis</FrameworkUtilisationTypeForGallio>
<FrameworkUtilisationTypeForMSpec>UseStaticAnalysis</FrameworkUtilisationTypeForMSpec>
<FrameworkUtilisationTypeForMSTest>UseStaticAnalysis</FrameworkUtilisationTypeForMSTest>
+ <EngineModes>Run all tests automatically:BFRydWU=;Run all tests manually:BUZhbHNl;Run impacted tests automatically, others manually:CklzSW1wYWN0ZWQ=;Run pinned tests automatically, others manually:CElzUGlubmVk</EngineModes>
<MetricsExclusionList>
</MetricsExclusionList>
</SolutionConfiguration>
@@ -15,6 +15,7 @@ public class Parsing_CollectionModel_Tests
[TestInitialize]
[HostType("VS IDE")]
+ [TestProperty("VSTest", "VSTest")]
public void Init()
{
item = VSHost.TestSolution.FindProjectItem("CollectionModel.cs");
@@ -23,20 +24,23 @@ public void Init()
[TestMethod]
[HostType("VS IDE")]
+ [TestProperty("VSTest", "VSTest")]
public void CollectionModel_should_be_parsed()
{
theObject.Should().NotBeNull();
}
[TestMethod]
[HostType("VS IDE")]
+ [TestProperty("VSTest", "VSTest")]
public void CollectionModel_Name_is_CollectionModel()
{
theObject.Should().NameIs("CollectionModel");
}
[TestMethod]
[HostType("VS IDE")]
+ [TestProperty("VSTest", "VSTest")]
public void CollectionModel_Property_AStringArray_is_correct()
{
theObject.Should().HasProperty("AStringArray")
@@ -47,6 +51,7 @@ public void CollectionModel_Property_AStringArray_is_correct()
[TestMethod]
[HostType("VS IDE")]
+ [TestProperty("VSTest", "VSTest")]
public void CollectionModel_Property_AStringIEnumerable_is_correct()
{
theObject.Should().HasProperty("AStringIEnumerable")
@@ -57,6 +62,7 @@ public void CollectionModel_Property_AStringIEnumerable_is_correct()
[TestMethod]
[HostType("VS IDE")]
+ [TestProperty("VSTest", "VSTest")]
public void CollectionModel_Property_AStringICollection_is_correct()
{
theObject.Should().HasProperty("AStringICollection")
@@ -67,6 +73,7 @@ public void CollectionModel_Property_AStringICollection_is_correct()
[TestMethod]
[HostType("VS IDE")]
+ [TestProperty("VSTest", "VSTest")]
public void CollectionModel_Property_AStringIList_is_correct()
{
theObject.Should().HasProperty("AStringIList")
@@ -77,6 +84,7 @@ public void CollectionModel_Property_AStringIList_is_correct()
[TestMethod]
[HostType("VS IDE")]
+ [TestProperty("VSTest", "VSTest")]
public void CollectionModel_Property_AStringList_is_correct()
{
theObject.Should().HasProperty("AStringList")
@@ -87,6 +95,7 @@ public void CollectionModel_Property_AStringList_is_correct()
[TestMethod]
[HostType("VS IDE")]
+ [TestProperty("VSTest", "VSTest")]
public void CollectionModel_Property_AStringCollection_is_correct()
{
theObject.Should().HasProperty("AStringCollection")
@@ -107,6 +116,7 @@ public void CollectionModel_Property_ASimpleList_is_correct()
[TestMethod]
[HostType("VS IDE")]
+ [TestProperty("VSTest", "VSTest")]
public void CollectionModel_Property_ALongList_is_correct()
{
theObject.Should().HasProperty("ALongList")
@@ -15,6 +15,7 @@ public class Parsing_SimpleClass_Tests
[TestInitialize]
[HostType("VS IDE")]
+ [TestProperty("VSTest", "VSTest")]
public void Init()
{
_item = VSHost.TestSolution.FindProjectItem("Simple.cs");
@@ -23,19 +24,22 @@ public void Init()
[TestMethod]
[HostType("VS IDE")]
+ [TestProperty("VSTest", "VSTest")]
public void Simple_should_be_parsed()
{
_theObject.Should().NotBeNull();
}
[TestMethod]
[HostType("VS IDE")]
+ [TestProperty("VSTest", "VSTest")]
public void Simple_Name_is_Simple()
{
_theObject.Should().NameIs("Simple");
}
[TestMethod]
+ [TestProperty("VSTest", "VSTest")]
[HostType("VS IDE")]
public void Simple_AString_is_correct()
{
@@ -47,6 +51,7 @@ public void Simple_AString_is_correct()
[TestMethod]
[HostType("VS IDE")]
+ [TestProperty("VSTest", "VSTest")]
public void Simple_AnInt_is_correct()
{
_theObject.Should().HasProperty("AnInt")
@@ -57,6 +62,7 @@ public void Simple_AnInt_is_correct()
[TestMethod]
[HostType("VS IDE")]
+ [TestProperty("VSTest", "VSTest")]
public void Simple_ABool_is_correct()
{
_theObject.Should().HasProperty("ABool")
@@ -66,6 +72,7 @@ public void Simple_ABool_is_correct()
}
[TestMethod]
[HostType("VS IDE")]
+ [TestProperty("VSTest", "VSTest")]
public void Simple_ASimple_property_is_correct()
{
_theObject.Should().HasProperty("ASimple")
@@ -76,6 +83,7 @@ public void Simple_ASimple_property_is_correct()
[TestMethod]
[HostType("VS IDE")]
+ [TestProperty("VSTest", "VSTest")]
public void Simple_ADateTime_property_is_correct()
{
_theObject.Should().HasProperty("ADateTime")
@@ -15,6 +15,7 @@ public class Parsing_SimpleNullable_Tests
[TestInitialize]
[HostType("VS IDE")]
+ [TestProperty("VSTest", "VSTest")]
public void Init()
{
_item = VSHost.TestSolution.FindProjectItem("SimpleNullable.cs");
@@ -23,20 +24,23 @@ public void Init()
[TestMethod]
[HostType("VS IDE")]
+ [TestProperty("VSTest", "VSTest")]
public void SimpleNullable_should_be_parsed()
{
_theObject.Should().NotBeNull();
}
[TestMethod]
[HostType("VS IDE")]
+ [TestProperty("VSTest", "VSTest")]
public void SimpleNullable_Name_is_Simple()
{
_theObject.Should().NameIs("SimpleNullable");
}
[TestMethod]
[HostType("VS IDE")]
+ [TestProperty("VSTest", "VSTest")]
public void SimpleNullable_AnInt_is_correct()
{
_theObject.Should().HasProperty("AnInt")
@@ -47,6 +51,7 @@ public void SimpleNullable_AnInt_is_correct()
[TestMethod]
[HostType("VS IDE")]
+ [TestProperty("VSTest", "VSTest")]
public void SimpleNullable_ABool_is_correct()
{
_theObject.Should().HasProperty("ABool")
@@ -57,6 +62,7 @@ public void SimpleNullable_ABool_is_correct()
[TestMethod]
[HostType("VS IDE")]
+ [TestProperty("VSTest", "VSTest")]
public void SimpleNullable_ADateTime_property_is_correct()
{
_theObject.Should().HasProperty("ADateTime")
@@ -29,13 +29,15 @@ public class VSHostTest
{
[TestMethod]
[HostType("VS IDE")]
+ [TestProperty("VSTest", "VSTest")]
public void VSTest_CanOpenSolution()
{
VSHost.TestSolution.Should().NotBeNull();
}
[TestMethod]
[HostType("VS IDE")]
+ [TestProperty("VSTest", "VSTest")]
public void VSTest_CanFindProjectItem()
{
var projectItem = VSHost.TestSolution.FindProjectItem("Simple.cs");
@@ -4,13 +4,15 @@
<PreloadReferencedAssemblies>false</PreloadReferencedAssemblies>
<AllowDynamicCodeContractChecking>true</AllowDynamicCodeContractChecking>
<AllowStaticCodeContractChecking>false</AllowStaticCodeContractChecking>
+ <AllowCodeAnalysis>false</AllowCodeAnalysis>
<IgnoreThisComponentCompletely>false</IgnoreThisComponentCompletely>
<RunPreBuildEvents>false</RunPreBuildEvents>
<RunPostBuildEvents>true</RunPostBuildEvents>
<PreviouslyBuiltSuccessfully>true</PreviouslyBuiltSuccessfully>
<InstrumentAssembly>true</InstrumentAssembly>
<PreventSigningOfAssembly>false</PreventSigningOfAssembly>
<AnalyseExecutionTimes>true</AnalyseExecutionTimes>
+ <DetectStackOverflow>true</DetectStackOverflow>
<IncludeStaticReferencesInWorkspace>false</IncludeStaticReferencesInWorkspace>
<DefaultTestTimeout>60000</DefaultTestTimeout>
<UseBuildConfiguration></UseBuildConfiguration>
@@ -19,5 +21,19 @@
<UseCPUArchitecture>AutoDetect</UseCPUArchitecture>
<MSTestThreadApartmentState>STA</MSTestThreadApartmentState>
<BuildProcessArchitecture>x86</BuildProcessArchitecture>
+ <IgnoredTests>
+ <FixtureTestSelector>
+ <FixtureName>WebEssentialsTests.VSHostTest</FixtureName>
+ </FixtureTestSelector>
+ <FixtureTestSelector>
+ <FixtureName>WebEssentialsTests.Tests.IntellisenseGeneration.Parsing_CollectionModel_Tests</FixtureName>
+ </FixtureTestSelector>
+ <FixtureTestSelector>
+ <FixtureName>WebEssentialsTests.Tests.IntellisenseGeneration.Parsing_SimpleNullable_Tests</FixtureName>
+ </FixtureTestSelector>
+ <FixtureTestSelector>
+ <FixtureName>WebEssentialsTests.Tests.IntellisenseGeneration.Parsing_SimpleClass_Tests</FixtureName>
+ </FixtureTestSelector>
+ </IgnoredTests>
<AdditionalFilesToInclude>..\EditorExtensions\Resources\**.*</AdditionalFilesToInclude>
</ProjectConfiguration>

0 comments on commit a4c55f1

Please sign in to comment.