2016-12-15 7 views
2

アセンブリAcme.Foundations.web.ext.dllからAcme.Foundations.Web.Ext.Controllerを除くすべての名前空間を除外しようとしています。 runsettingsファイルを作成してください。.runsettingsを使用してアセンブリから名前空間を除外する

<DataCollectionRunSettings> 
    <DataCollectors> 
     <DataCollector friendlyName="Code Coverage" uri="datacollector://Microsoft/CodeCoverage/2.0" assemblyQualifiedName="Microsoft.VisualStudio.Coverage.DynamicCoverageDataCollector, Microsoft.VisualStudio.TraceCollector, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 
      <Configuration> 
      <CodeCoverage> 
       <ModulePaths> 
       <Exclude> 
        <ModulePath>.*Ext.Helpers*</ModulePath> 
        ??? 
       </Exclude> 
       </ModulePaths> 
      </CodeCoverage> 
      </Configuration> 
     </DataCollector> 
    </DataCollectors> 
    </DataCollectionRunSettings> 

Acme.Foundations.web.ext.dll 
Acme.Foundations.Web.Ext.Controllers 
Acme.Foundations.Web.Ext.Helper 
Acme.Foundations.Web.Ext.Models 
Acme.Foundations.Web.Ext.Properties 
Acme.Foundations.Web.Ext.Resources 
Acme.Foundations.Web.Ext.Utilities 
Acme.Foundations.Web.Ext.ViewModels 
Acme.Identity.Web 
Acme.Identity.Web.App_Start 
Acme.Identity.Web.Identity 
Acme.Utilities 
System.Web.Mvc.Html 

答えて

5

あなたは、関数を使用する必要があります - >セクションを除外し、すべての不要な名前空間に

を削除する例:

<Functions> 
    <Exclude> 
     <!-- Exclude everthing inside the namesapce "Acme.Foundations.Web.Ext.Helper" --> 
     <Function>^Acme.Foundations.Web.Ext.Helper\..*</Function> 
    </Exclude> 
</Functions> 
関連する問題