dotcover cover-iis results in zero coverage and errors in the log file
I am trying to cover our api application in IIS it it setup on a new website binded to port 443 and once i end dotcover i get an error in the log file and 0 coverage. I do sometimes 1 out of 10 times get it to work but havent been able to replicate what i do.
Below are commands/versions all commands are done in Command Prompt as Admin and user is an Admin
dotcover version: dotCover Console Runner 2021.2.1. Build 777.0.20210826.113222
Command: dotcover cover-iis --output=C:\p2\coverageReport.xml --ReportType=XML --Instance=1 --LogFile=C:\p2\dot.log
I open up chrome browser and browse the app and click around to trigger the api. Below is the command i execute to end the dotcover
Command : dotCover send --Command=GetSnapshotAndKillChildren --Instance=1
Log output
19:31:59.828 |I| | :1 | JetBrains dotCover Console Runner 2021.2.1. Build 777.0.20210826.113222
19:31:59.844 |I| | :1 | LogLevel: INFO
19:31:59.844 |I| Main | :1 | Command line: dotcover cover-iis --output=C:\p2\coverageReport.xml --ReportType=XML --Instance=1 --LogFile=C:\p2\dot.log
19:31:59.875 |I| Main | :1 | Creating command...
19:32:00.266 |I| Main | :1 | Executing command...
19:32:00.625 |I| Main | :1 | Coverage session started
19:32:07.247 |I| Main | :1 | Starting instance service
19:32:07.310 |I| Main | :1 | Instance started and ready to accept commands: InstanceId='1', Port=56376
19:33:35.830 |I| Main | InstanceServiceScheduler:14 | 'GetSnapshotAndKillChildren' command received. Timeout=9.6895127 sec
19:33:35.907 |I| Main | :7 | SnapshotDone event received, pid=2480: C:\Users\awsadmin\AppData\Local\Temp\ssd.Zeremoj.tmp
19:33:36.268 |I| Main | JetPool(S) #1:26 | Finished event received
19:33:36.309 |I| Main | :1 | Coverage session finished
19:33:36.316 |I| Main | :1 | Index files: C:\Users\awsadmin\AppData\Local\Temp\ssd.Zeremoj.tmp
19:33:36.319 |I| Main | :1 | Coverage results post-processing started
19:33:36.324 |I| Main | :1 | Report generation started
19:33:36.359 |I| CoverageSnapshotComposer | :1 | Unknown section ignored: type=1, version=0
19:33:36.672 |I| XmlReportBuilder | :1 | BuildXmlReport. Type = Xml; FileName = C:\p2\coverageReport.xml
19:33:36.708 |E| | JetPool(S) #6:31 | Cannot Advance beyond TotalWorkUnits.
--- EXCEPTION #1/2 [InvalidOperationException]
Message = “Cannot Advance beyond TotalWorkUnits.”
ExceptionPath = Root.InnerException
ClassName = System.InvalidOperationException
HResult = COR_E_INVALIDOPERATION=80131509
--- Outer ---
--- EXCEPTION #2/2 [LoggerException]
Message = “Cannot Advance beyond TotalWorkUnits.”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
at JetBrains.Util.LoggerBase.Log(LoggingLevel level, String message, Exception ex)
at JetBrains.Application.Progress.ProgressIndicatorBase.Advance(Double units)
at JetBrains.Application.Progress.SubProgressIndicator.Advance(Double units)
at JetBrains.dotCover.Workspace.Impl.Reporting.Model.Xml.XmlReportBuilderBase.WriteNodeRec(CoverageNodeId nodeId, Boolean isRoot, ReportBuilderContext context, ICoverageNodeChildrenEnumerator`1 childrenEnumerator)
at JetBrains.dotCover.Workspace.Impl.Reporting.Model.Xml.XmlReportBuilderBase.<>c__DisplayClass12_0.<<BuildReport>b__0>d.MoveNext()
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine)
at JetBrains.dotCover.Workspace.Impl.Reporting.Model.Xml.XmlReportBuilderBase.<>c__DisplayClass12_0.<BuildReport>b__0()
at JetBrains.Application.Threading.Tasks.TaskHost.AccessViolationCatcher[T](Func`1 action)
at JetBrains.Application.Threading.Tasks.TaskHost.<>c__DisplayClass37_0`1.<Create>b__1(Object state)
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
at JetBrains.Application.Threading.Tasks.Scheduler.JetScheduler.ExecuteTask(Task task)
at JetBrains.Application.Threading.Tasks.Scheduler.JetSchedulerThread.EnqueueNextTask()
at JetBrains.Application.Threading.Tasks.Scheduler.JetSchedulerThread.ThreadPoolProc()
at JetBrains.Util.Reflection.CallStackAnnotation.CatchAnnotatedInvocation[TClassOfNewFrame](String methodNameOfNewFrame, Action actionToAnnotate)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
”
19:33:36.792 |I| Main | :1 | Report generation finished
19:33:36.808 |I| Main | :1 | Coverage results post-processing finished
19:33:36.808 |I| Main | :1 | Waiting for instance service to be idle
19:33:36.875 |I| Main | :1 | Console Runner exit code: 0
Please sign in to leave a comment.