Off-hand, I don't know what's going on in there. We'll see what we can do for the MbUnit v2.4.2 release.
For now, I recommend using the <Exec> task to run MbUnit.Cons. Jeff. -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Wesley Hunt Sent: Wednesday, January 16, 2008 9:37 PM To: MbUnit.User Subject: MbUnit MSBuild Task I'm having the exact same troubles as those reported in the "MSBuild integreation" [sic] thread (Sorry, I don't seem to be able to reply directly to it): http://groups.google.com/group/MbUnitUser/browse_frm/thread/2143ef34960dba02 If I deliberately misspell the assembly to test it gives me: UnitTests.csproj(96,7): error : Test assembly D:\Main\Src\UnitTests\bin \Debug\BadFileName.dll cannot be found UnitTests.csproj(96,7): error : Full name: D:\Main\Src\UnitTests\bin \Debug\BadFileName.dll UnitTests.csproj(96,7): error : Unexpected failure during MbUnit execution UnitTests.csproj(96,7): error : Failed loading assemblies UnitTests.csproj(96,7): error : at MbUnit.Core.Graph.TestDomainDependencyGraph.BuildGraph(String[] testAssemblies, String[] assemblyPaths, IFixtureFilter fixtureFilter, IRunPipeFilter runPipeFilter, Boolean verbose) UnitTests.csproj(96,7): error : at MbUnit.Core.Graph.TestDomainDependencyGraph.BuildGraph(String[] testAssemblies, String[] assemblyPaths, IFixtureFilter fixtureFilter, Boolean verbose) UnitTests.csproj(96,7): error : at MbUnit.MSBuild.Tasks.MbUnit.InternalExecute() UnitTests.csproj(96,7): error : at MbUnit.MSBuild.Tasks.MbUnit.Execute() When I enter the assembly correctly I get the error the OP mentioned: UnitTests.csproj(96,7): error : Unexpected failure during MbUnit execution UnitTests.csproj(96,7): error : Failed loading assemblies UnitTests.csproj(96,7): error : at MbUnit.Core.Graph.TestDomainDependencyGraph.BuildGraph(String[] testAssemblies, String[] assemblyPaths, IFixtureFilter fixtureFilter, IRunPipeFilter runPipeFilter, Boolean verbose) UnitTests.csproj(96,7): error : at MbUnit.Core.Graph.TestDomainDependencyGraph.BuildGraph(String[] testAssemblies, String[] assemblyPaths, IFixtureFilter fixtureFilter, Boolean verbose) UnitTests.csproj(96,7): error : at MbUnit.MSBuild.Tasks.MbUnit.InternalExecute() UnitTests.csproj(96,7): error : at MbUnit.MSBuild.Tasks.MbUnit.Execute() Running as an <Exec> command instead works just fine. My task looks like this: <MbUnit Assemblies="$(TargetPath)" ReportTypes="xml" ReportFileNameFormat="mbunittestreport.{0}.{1}" ReportOutputDirectory="$(TargetDir)" /> I've used various forms of hardcoding instead of $(TargetPath) etc to no avail. Any ideas? -Wes --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
