2012-05-31 26 views
0

在Visual Studio的代碼覆蓋窗口中,它告訴我函數覆蓋了89.09%。確定函數的哪些部分未被單元測試覆蓋

如何找到未涵蓋的功能部分?

注:我有代碼覆蓋着色選擇(雖然我不知道它是什麼)。

使用標準的MS測試框架,這是一個C#解決方案。

更新:this頁面似乎是說其中,此選項的位置,但在第5步(Under Display items, select the area of code coverage whose display color you want to change. Your choices are Coverage Not Touched Area, Coverage Partially Touched Area, and Coverage Touched Area.)是不可能的,因爲這些選項丟失。

+0

這是測試版或發佈候選版嗎? –

+0

這是測試版。我不知道有一個RC,現在就嘗試。 – soandos

+0

通過升級到RC解決。作爲回答發佈,我會接受。 – soandos

回答

1

如果您仍處於測試階段,那麼可能需要移到RC上

相關問題