tmauldin / mb-unit

Automatically exported from code.google.com/p/mb-unit
0 stars 0 forks source link

Delete All Reports in Icarus not working properly #683

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run some tests and then Right click Reports -> Delete All Reports

What is the expected output? What do you see instead?
All reports should be deleted and removed from the Reports tree. They are not, 
and attempting to view them generates another exception.

What version of the product are you using? On what operating system?
Icarus 3.2 build 505 / Windows 7 / x86

Please provide any additional information below.

Initial exception:

System.UnauthorizedAccessException: Access to the path 
'C:\Users\username\AppData\Roaming\Gallio\Icarus\Reports' is denied.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive)
   at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive)
   at Gallio.Common.IO.FileSystem.DeleteDirectory(String path, Boolean recursive) in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Common\IO\FileSystem.cs:line 89
   at Gallio.Icarus.Commands.DeleteAllReportsCommand.Execute(IProgressMonitor progressMonitor)
   at Gallio.UI.ProgressMonitoring.TaskRunner.<>c__DisplayClass2.<BeginNextTask>b__0()
Reported by: 
UnhandledExceptionPolicy
   at Gallio.UI.Common.Policies.UnhandledExceptionPolicy.Report(String message, Exception unhandledException)
   at Gallio.UI.ProgressMonitoring.TaskRunner.ProcessFailure(Exception exception, String queueId)
   at Gallio.UI.ProgressMonitoring.TaskRunner.TaskTerminated(Task workerTask, String queueId)
   at Gallio.UI.ProgressMonitoring.TaskRunner.<>c__DisplayClass2.<BeginNextTask>b__1(Object , TaskEventArgs )
   at Gallio.Common.Policies.EventHandlerPolicy.SafeInvoke[T](EventHandler`1 handlerChain, Object sender, T e) in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Common\Policies\EventHandlerPolicy.cs:line 69
   at Gallio.Common.Concurrency.Task.Notify(EventHandler`1& chain) in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Common\Concurrency\Task.cs:line 355
   at Gallio.Common.Concurrency.Task.OnTerminated() in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Common\Concurrency\Task.cs:line 343
   at Gallio.Common.Concurrency.Task.NotifyTerminated(TaskResult result) in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Common\Concurrency\Task.cs:line 305
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

Attempting to view the non-existent report exception:

System.UnauthorizedAccessException: Access to the path 
'C:\Users\username\AppData\Roaming\Gallio\Icarus\Reports\test-report-20100712-12
0747.xml' is denied.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at Gallio.Runner.Reports.FileSystemReportContainer.OpenRead(String path) in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Runner\Reports\FileSystemReportContainer.cs:line 60
   at Gallio.Runner.Reports.DefaultReportReader.LoadReport(Boolean loadAttachmentContents, IProgressMonitor progressMonitor) in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Runner\Reports\DefaultReportReader.cs:line 69
   at Gallio.Icarus.Services.ReportService.ConvertSavedReport(String fileName, String format, IProgressMonitor progressMonitor)
   at Gallio.Icarus.Controllers.ReportController.ConvertSavedReport(String fileName, String format, IProgressMonitor progressMonitor)
   at Gallio.Icarus.Commands.ConvertSavedReportCommand.Execute(IProgressMonitor progressMonitor)
   at Gallio.UI.ProgressMonitoring.TaskRunner.<>c__DisplayClass2.<BeginNextTask>b__0()
Reported by: 
UnhandledExceptionPolicy
   at Gallio.UI.Common.Policies.UnhandledExceptionPolicy.Report(String message, Exception unhandledException)
   at Gallio.UI.ProgressMonitoring.TaskRunner.ProcessFailure(Exception exception, String queueId)
   at Gallio.UI.ProgressMonitoring.TaskRunner.TaskTerminated(Task workerTask, String queueId)
   at Gallio.UI.ProgressMonitoring.TaskRunner.<>c__DisplayClass2.<BeginNextTask>b__1(Object , TaskEventArgs )
   at Gallio.Common.Policies.EventHandlerPolicy.SafeInvoke[T](EventHandler`1 handlerChain, Object sender, T e) in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Common\Policies\EventHandlerPolicy.cs:line 69
   at Gallio.Common.Concurrency.Task.Notify(EventHandler`1& chain) in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Common\Concurrency\Task.cs:line 355
   at Gallio.Common.Concurrency.Task.OnTerminated() in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Common\Concurrency\Task.cs:line 343
   at Gallio.Common.Concurrency.Task.NotifyTerminated(TaskResult result) in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Common\Concurrency\Task.cs:line 305
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

Original issue reported on code.google.com by gmcdonald@vividas.com on 12 Jul 2010 at 2:15

GoogleCodeExporter commented 9 years ago
This might be related - the first report to be generated within a Test Project 
never shows up on the report tree, although the .xml file correctly shows up in 
the Report Directory. 

The next time the tests are run, the latest generated report is shown in the 
report tree.

Original comment by gmcdonald@vividas.com on 12 Jul 2010 at 2:23

GoogleCodeExporter commented 9 years ago

Original comment by grahamr...@gmail.com on 7 Sep 2010 at 8:46