-
Notifications
You must be signed in to change notification settings - Fork 899
Adds support for nCrunch. #825
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,3 +39,4 @@ _ReSharper*/ | |
LibGit2Sharp/Core/UniqueIdentifier.cs | ||
|
||
!Lib/NativeBinaries/*/*.pdb | ||
_NCrunch_LibGit2Sharp/ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<ProjectConfiguration> | ||
<BuildPriority>1000</BuildPriority> | ||
<CopyReferencedAssembliesToWorkspace>false</CopyReferencedAssembliesToWorkspace> | ||
<ConsiderInconclusiveTestsAsPassing>true</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></UseBuildConfiguration> | ||
<UseBuildPlatform></UseBuildPlatform> | ||
<ProxyProcessPath></ProxyProcessPath> | ||
<UseCPUArchitecture>AutoDetect</UseCPUArchitecture> | ||
<MSTestThreadApartmentState>STA</MSTestThreadApartmentState> | ||
<BuildProcessArchitecture>x86</BuildProcessArchitecture> | ||
<IgnoredTests> | ||
<NamedTestSelector> | ||
<TestName>LibGit2Sharp.Tests.ShadowCopyFixture.CanProbeForNativeBinariesFromAShadowCopiedAssembly</TestName> | ||
</NamedTestSelector> | ||
</IgnoredTests> | ||
<AdditionalFilesToInclude>Resources\**;Resources\**.*</AdditionalFilesToInclude> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do we need both paths? Couldn't this be only?
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Some of the resources don't have an extension. If you ignore Resources*. it will only ignore resources that have a |
||
</ProjectConfiguration> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<SolutionConfiguration> | ||
<FileVersion>1</FileVersion> | ||
<InferProjectReferencesUsingAssemblyNames>false</InferProjectReferencesUsingAssemblyNames> | ||
<AllowParallelTestExecution>false</AllowParallelTestExecution> | ||
<AllowTestsToRunInParallelWithThemselves>false</AllowTestsToRunInParallelWithThemselves> | ||
<FrameworkUtilisationTypeForNUnit>UseDynamicAnalysis</FrameworkUtilisationTypeForNUnit> | ||
<FrameworkUtilisationTypeForGallio>UseStaticAnalysis</FrameworkUtilisationTypeForGallio> | ||
<FrameworkUtilisationTypeForMSpec>UseStaticAnalysis</FrameworkUtilisationTypeForMSpec> | ||
<FrameworkUtilisationTypeForMSTest>UseStaticAnalysis</FrameworkUtilisationTypeForMSTest> | ||
<FrameworkUtilisationTypeForXUnitV2>UseStaticAnalysis</FrameworkUtilisationTypeForXUnitV2> | ||
<MetricsExclusionList> | ||
</MetricsExclusionList> | ||
</SolutionConfiguration> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<ProjectConfiguration> | ||
<BuildPriority>1000</BuildPriority> | ||
<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></UseBuildConfiguration> | ||
<UseBuildPlatform></UseBuildPlatform> | ||
<ProxyProcessPath></ProxyProcessPath> | ||
<UseCPUArchitecture>AutoDetect</UseCPUArchitecture> | ||
<MSTestThreadApartmentState>STA</MSTestThreadApartmentState> | ||
<BuildProcessArchitecture>x86</BuildProcessArchitecture> | ||
<AdditionalFilesToInclude>..\Lib\NativeBinaries\**.*</AdditionalFilesToInclude> | ||
</ProjectConfiguration> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please share some information about what led to ignoring this test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Behind the scenes, NCrunch builds everything out into separate folders and the runner has a custom assembly resolver for locating assemblies on disk. It does not use the CLR's built in assembly resolver. After getting all other tests passing, this was the only one that wasn't passing. The name of this test suggests to me that it is testing the behavior of LibGit2Sharp under a very specific circumstances (shadow copying by the CLR). I assumed (based on the test name) that it was unlikely to work correctly under NCrunch due to the way NCrunch does assembly resolution so I ignored it.
It may be possible to get the test running under NCrunch, but my thought was that it probably wasn't worth the time investment required for a single test.
Personally I am pretty loose with NCrunch test ignores. Whatever build server I have usually runs all of the tests anyway, NCrunch is there as a convenience for getting a tighter feedback loop. If one test is missing from NCrunch runs it isn't a big deal to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair enough