Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Code coverage shows line- 0 of n covered

Aperta
#182 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
azure, csharp
Ambito
ci-cd, testing-qa

Direzione di ricerca

Inizia con Logs.zip e la configurazione della pipeline VSTest@2, quindi esamina come Microsoft.CodeCoverage 17.14.1 viene usato con assembly di test DLL C# .NET Framework 4.8.1. Verifica le domande dell’issue relative a Microsoft.NET.Test.Sdk, ai file PDB referenziati e alla configurazione dell’assembly di test; il lavoro è completato quando viene identificato il requisito di configurazione che spiega le zero righe coperte.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
C#
Stelle
125
Fork
17
Merge medio
1h 17m
PR unite (30g)
2

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/codecoverage

Tutte le issue di microsoft/codecoverage

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.