Ah. I know what the problem is. I'll see about fixing it properly in an upcoming build.
Thanks, Jeff On Mar 15, 2009, at 5:48 AM, "Bruno Wouters" <[email protected]> wrote: > > Hi Jeff, > > I'm testing the runner-property but I'm getting some exception. I > solved > this by moving the content of the C:\Program Files\Gallio\bin\NCover > \v1.5.8 > folder to C:\Program Files\Gallio\bin. > > Greets, > Bruno > > > > <logEntry severity="error" message="A fatal exception occurred while > running > tests. Possible causes include invalid test runner parameters and > stack > overflows." details="Gallio.Runtime.Hosting.HostException: An > exception > occurred while connecting to the host service. ---> > Gallio.Runtime.Hosting.HostException: Error attaching to the host > process. > ---> System.IO.FileNotFoundException: Could not load file or > assembly > 'NCover.Framework, Version=1.5.8.0, Culture=neutral, > PublicKeyToken=f4018786f4b01bc6' or one of its dependencies. The > system > cannot find the file specified.
 at > Gallio. > NCoverIntegration.EmbeddedNCoverProcessTask.OnTerminated()
 at > Gallio.Concurrency.Task.NotifyTerminated(TaskResult result) in > c:\RelEng\Projects\MbUnit v3\Work\src\Gallio\Gallio\Concurrency > \Task.cs:line > 307
 at Gallio.Concurrency.Task.Start() in c:\RelEng\Projects > \MbUnit > v3\Work\src\Gallio\Gallio\Concurrency\Task.cs:line 179
 at > Gallio.Runtime.Hosting.IsolatedProcessHost.StartProcess(String > hostConnectionArguments) in c:\RelEng\Projects\MbUnit > v3\Work\src\Gallio\Gallio\Runtime\Hosting\IsolatedProcessHost.cs:line > 198
 at > Gallio. > Runtime.Hosting.IsolatedProcessHost.AcquireRemoteHostService() in > c:\RelEng\Projects\MbUnit > v3\Work\src\Gallio\Gallio\Runtime\Hosting\IsolatedProcessHost.cs:line > 102
 --- End of inner exception stack trace ---
 at > Gallio. > Runtime.Hosting.IsolatedProcessHost.AcquireRemoteHostService() in > c:\RelEng\Projects\MbUnit > v3\Work\src\Gallio\Gallio\Runtime\Hosting\IsolatedProcessHost.cs:line > 115
 at Gallio.Runtime.Hosting.RemoteHost.AcquireHostService() > in > c:\RelEng\Projects\MbUnit > v3\Work\src\Gallio\Gallio\Runtime\Hosting\RemoteHost.cs:line > 65
 at > Gallio.Runtime.Hosting.BaseHost.Connect() in c:\RelEng\Projects\MbUnit > v3\Work\src\Gallio\Gallio\Runtime\Hosting\BaseHost.cs:line > 142
 --- > End of inner exception stack trace ---
 at > Gallio.Runtime.Hosting.BaseHost.Connect() in c:\RelEng\Projects\MbUnit > v3\Work\src\Gallio\Gallio\Runtime\Hosting\BaseHost.cs:line > 146
 at > Gallio.NCoverIntegration.NCoverHostFactory.CreateHostImpl(HostSetup > hostSetup, ILogger logger)
 at > Gallio.Runtime.Hosting.BaseHostFactory.CreateHost(HostSetup hostSetup, > ILogger logger) in c:\RelEng\Projects\MbUnit > v3\Work\src\Gallio\Gallio\Runtime\Hosting\BaseHostFactory.cs:line > 37
 > at Gallio.Runner.Drivers.HostedTestDriver.CreateRemoteHost(String > workingDirectory, Boolean shadowCopy, Boolean debug, > ProcessorArchitecture > arch) in c:\RelEng\Projects\MbUnit > v3\Work\src\Gallio\Gallio\Runner\Drivers\HostedTestDriver.cs:line > 148
 > at > Gallio. > Runner.Drivers.HostedTestDriver.DoWithPartitions(TestPackageConfig > testPackageConfig, Action`1 action, Action`1 setStatus) in > c:\RelEng\Projects\MbUnit > v3\Work\src\Gallio\Gallio\Runner\Drivers\HostedTestDriver.cs:line > 113
 > at > Gallio. > Runner.Drivers.AggregateTestDriver.ExploreOrRunEachPartition(TestPack > ageConfig testPackageConfig, ITestExplorationListener > testExplorationListener, ITestExecutionListener testExecutionListener, > PartitionAction action, IProgressMonitor progressMonitor) in > c:\RelEng\Projects\MbUnit > v3\Work\src\Gallio\Gallio\Runner\Drivers\AggregateTestDriver.cs:line > 74
 > at Gallio.Runner.Drivers.AggregateTestDriver.RunImpl(TestPackageConfig > testPackageConfig, TestExplorationOptions testExplorationOptions, > ITestExplorationListener testExplorationListener, TestExecutionOptions > testExecutionOptions, ITestExecutionListener testExecutionListener, > IProgressMonitor progressMonitor) in c:\RelEng\Projects\MbUnit > v3\Work\src\Gallio\Gallio\Runner\Drivers\AggregateTestDriver.cs:line > 60
 > at Gallio.Runner.Drivers.BaseTestDriver.Run(TestPackageConfig > testPackageConfig, TestExplorationOptions testExplorationOptions, > ITestExplorationListener testExplorationListener, TestExecutionOptions > testExecutionOptions, ITestExecutionListener testExecutionListener, > IProgressMonitor progressMonitor) in c:\RelEng\Projects\MbUnit > v3\Work\src\Gallio\Gallio\Runner\Drivers\BaseTestDriver.cs:line > 92
 at > Gallio.Runner.DefaultTestRunner.Run(TestPackageConfig > testPackageConfig, > TestExplorationOptions testExplorationOptions, TestExecutionOptions > testExecutionOptions, IProgressMonitor progressMonitor) in > c:\RelEng\Projects\MbUnit > v3\Work\src\Gallio\Gallio\Runner\DefaultTestRunner.cs:line 292" /> > </logEntries> > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On > Behalf Of Jeff Brown > Sent: vrijdag 13 maart 2009 19:03 > To: [email protected] > Subject: MbUnit Re: CoverageExclude attribute > > > Try build 716 or more recent from http://ccnet.gallio.org/Distributables/ > > To pass along extra command-line arguments, use the <runner- > properties> > element with NAnt like this: > > <gallio ...> > <runner-property value="NCoverArguments='//eas Gallio'" /> > ... other options... > </gallio> > > You can also change where the coverage file goes like this: > > <gallio ...> > <runner-property value="NCoverCoverageFile='c:\somepath > \coverage.xml'" /> > ... other options... > </gallio> > > Jeff. > > P.S. In build 715 the element was called "runner-properties", this > has been > changed. > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On > Behalf Of Bruno Wouters > Sent: Thursday, March 12, 2009 1:37 AM > To: [email protected] > Subject: MbUnit Re: CoverageExclude attribute > > > Thanks! > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On > Behalf Of Jeff Brown > Sent: donderdag 12 maart 2009 9:27 > To: [email protected] > Subject: MbUnit Re: CoverageExclude attribute > > > First available in a build sometime tomorrow... will be released in > v3.0.6. > > Jeff. > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On > Behalf Of Bruno Wouters > Sent: Thursday, March 12, 2009 12:52 AM > To: [email protected] > Subject: MbUnit Re: CoverageExclude attribute > > > Hi Jeff, > > That's great news! In which version do you expect this to be in? > > Thanks > > Greets, > Bruno > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On > Behalf Of Jeff Brown > Sent: woensdag 11 maart 2009 21:28 > To: [email protected] > Subject: MbUnit Re: CoverageExclude attribute > > > Working on it now. > > (This has been a popular request.) > > Jeff. > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On > Behalf Of Bruno Wouters > Sent: Wednesday, March 11, 2009 4:38 AM > To: MbUnit.User > Subject: MbUnit CoverageExclude attribute > > > Hi all, > > I'm using the following nant script to run my tests with the ncover > runner. > I noticed that it does not take the CoverageExclude attribute in to > account. > Are there better/other html report generators than ncoverexplorer? > Or is > there a way to fix this? Can I pass arguments to the ncover process > (e.g. > //ea CoverageExclude)? > > <loadtasks assembly="${ToolsPath}\Gallio\bin\Gallio.NAntTasks.dll" > /> > <target name="test" depends="build"> > <echo message="Started testing ${AssemblyToTest}"/> > <gallio > result-property="exitCode" > runner-type="NCover" > failonerror="false" > > <runner-extension > value="TeamCityExtension,Gallio.TeamCityIntegration" /> > <assemblies> > <include name="${AssemblyToTest}" /> > </assemblies> > </gallio> > <fail if="${exitCode != '0'}" >One or more tests failed. Please > check the log for more details</fail> > </target> > > > > <loadtasks assembly="${ToolsPath}\NCoverExplorer.Extras\bin > \NCoverExplorer.NAntTasks.dll" /> > <target name="gencoverreport" depends="test"> > <echo message="Generating coverage report for ${TestAssemblyDll} > and excluding ${AssemblysToExcludeFromCoverage} and $ > {TestAssemblyName}"/> > <ncoverexplorer > program="${ToolsPath}\NCoverExplorer > \NCoverExplorer.Console.exe" > outputDir="${ReportsPath}" > satisfactoryCoverage="90" > minimumCoverage="90" > reportType="ModuleClassFunctionSummary" > htmlReportName="CoverageSummary.html" > failMinimum="True" > showExcluded="False"> > <fileset> > <include name="${WorkingDirectory}\Coverage.xml" /> > </fileset> > <exclusions> > <exclusion type="Assembly" pattern="Gallio*" /> > <exclusion type="Assembly" pattern="MbUnit*" /> > <exclusion type="Assembly" pattern="*CoverageExclude*" /> > <exclusion type="Assembly" pattern="${TestAssemblyName}" /> > <exclusion type="Assembly" pattern="$ > {AssemblysToExcludeFromCoverage}" isRegex="true" /> > </exclusions> > <moduleThresholds> > <moduleThreshold moduleName="${TestedAssemblyDll}" > satisfactoryCoverage="${SatisfactoryCoverage}" /> > </moduleThresholds> > </ncoverexplorer> > </target> > > Thanks! > Bruno > > > > > > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MbUnit.User" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/MbUnitUser?hl=en -~----------~----~----~----~------~----~------~--~---
