如何解读mono profiler报告中的覆盖率摘要

时间:2017-01-17 16:02:10

标签: xamarin mono profiling code-coverage nunit-console

我在Xamarin应用程序中为PCL创建了一个单元测试项目。我在控制台上运行:

    mono --debug  --profile=log:coverage,report,covfilter=+MyProject.Core.Contacts.ViewModels.ContactsViewModel \
    ../nunit3-console.exe \
    --noh \
    --inprocess \
    --noresult \
    ../MyProject.Core.Tests.dll

我将此作为报道摘要:

Coverage Summary:
    Brabbler.Core (/Users/Stam/Projects/MyProject/tests/Core/MyProject.Core.Tests/bin/Debug/MyProject.Core.dll) 0% covered (2260 methods - 9 covered)
        MyProject.Core.Contacts.ViewModels.ContactCellViewModel 25% covered (32 methods - 8 covered)
        MyProject.Core.Contacts.ViewModels.ContactCellViewModel.<DeleteContact>c__async0 50% covered (2 methods - 1 covered)
  1. 我该如何理解这份报告?
  2. ContactCellViewModel只有3种方法,为什么它会报告32种方法?
  3. ContactCellViewMode的覆盖率是25%是什么意思?

0 个答案:

没有答案