Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Code coverage shows line- 0 of n covered

オープン
#182 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
azure, csharp
領域
ci-cd, testing-qa

調査の方向性

Logs.zip と VSTest@2 パイプライン構成から始め、次に Microsoft.CodeCoverage 17.14.1 が C# .NET Framework 4.8.1 の DLL テスト アセンブリでどのように使用されているかを確認します。Microsoft.NET.Test.Sdk、参照されている PDB ファイル、テスト アセンブリのセットアップに関する issue の質問を確認します。ゼロ行しかカバーされない理由を説明する構成要件を特定できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

I'm using Microsoft.CodeCoverage 17.14.1 and running the tests on Azure DevOps pipeline using the VSTest@2 task.
The CodeCoverage report is getting generated, and assemblies with the respective PDB's are present in the same directory.

The Target platform of test projects is .NET Framework v481, and tests are written in C# and have DLLs as test assemblies.
I've not added the reference of the Microsoft.NET.Test.Sdk to the test projects and haven't added the props and targets of the same.

The report says 0 lines covered out of n number of coverable lines.

Is it required to add the Microsoft.NET.Test.Sdk reference to my test projects to get the code coverage stuff working?
Is Microsoft.CodeCoverage 17.14.1 capable of covering the C# test assemblies' code coverage?

Does it need to have all PDB files on which test assemblies have references?, I mean the projects on which tests are being performed using test projects?

Logs.zip

主要言語
C#
スター
125
フォーク
17
平均マージ
1時間 17分
マージ済み PR(30日)
2

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/codecoverage のほかの issue

microsoft/codecoverage の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。