要查看单元测试覆盖了多少代码,请运行测试类或方法覆盖率: 在编辑器中点击 the Run All buttonthe Run button 并从菜单中选择 运行 '<TestName>' 覆盖率

覆盖率结果将显示在 覆盖率 工具窗口中:

The Coverage tool window