I am hoping to use a scenario similar to the example in samples/Calculator/scenarios/scenario08, but I am receiving a "No code coverage data available. Profiler was not initialized." message when running the script. This happens on my machine, and in a mcr.microsoft.com/dotnet/sdk:8.0 container on my machine.
sample01 seems to work fine.
Any advice for me? This is my first under-the-hood foray into code coverage.
Processor: Apple M1 Pro
OS: Sonoma 14.5
Output:
$ dotnet-coverage collect -f cobertura "dotnet run --no-build add 10 24"
Microsoft (R) Code Coverage Command Line Tool (arm64)
Copyright (c) Microsoft Corporation. All rights reserved.
SessionId: 46e2a3bf-b5c3-42b2-ab44-832b5120c3bc
34
No code coverage data available. Profiler was not initialized.
Code coverage results: output.cobertura.xml.
I am hoping to use a scenario similar to the example in samples/Calculator/scenarios/scenario08, but I am receiving a "No code coverage data available. Profiler was not initialized." message when running the script. This happens on my machine, and in a mcr.microsoft.com/dotnet/sdk:8.0 container on my machine.
sample01 seems to work fine.
Any advice for me? This is my first under-the-hood foray into code coverage.
Processor: Apple M1 Pro OS: Sonoma 14.5 Output:
Log file: