Skip to content

Provide awesome experience to view code coverage data in VS Code which is collected by "dotnet test". This project part of @microsoft hackthon week https://garagehackbox.azurewebsites.net/hackathons/1214/projects/70923

Notifications You must be signed in to change notification settings

smadala/vstest.coverage

 
 

Repository files navigation

vstest.coverage

Build Status Build status

Packages

Logger Stable Package Pre-release Package
Spekt.VSTest.Coverage.Report NuGet MyGet Pre Release

Vision

Stop .NET(any) developer from shipping a bug. If we have to say nicely Let's not ship another bug because software failures cost the worldwide economy $1.1 trillion in 2016 and everybody hates bug.

Development

Steps to build/test this repo. Use these commands in root directory of repo.

Build

> dotnet pack

Test

> dotnet test src/CodeCoverageToLcovConverterTests/CodeCoverageReaderTests.csproj
> dotnet test src/Coverage.Report.Tests/Coverage.Report.Tests.csproj

# Windows only test
> dotnet test src/Coverage.TestLogger.Tests/Coverage.TestLogger.Tests.csproj

Integration

Use these steps to validate the task wire up.

> rm -rf packages/spekt.vstest.coverage.report
> dotnet pack
> cd src/Coverage.Report.Tests/TestAssets/sampletest
> rm -rf obj

# Run tests, note expected output below
> dotnet test

Build started, please wait...
Build completed.

Test run for /home/arun/src/gh/spekt/vstest.coverage/src/Coverage.Report.Tests/TestAssets/sampletest/bin/Debug/netcoreapp2.1/sampletest.dll(.NETCoreApp,Version=v2.1)
Microsoft (R) Test Execution Command Line Tool Version 15.3.0-preview-20170628-02
Copyright (c) Microsoft Corporation.  All rights reserved.

Starting test execution, please wait...

Total tests: 1. Passed: 1. Failed: 0. Skipped: 0.
Test Run Successful.
Test execution time: 0.9290 Seconds
=================================================
|   Module                     |  Coverage      |
=================================================
| Spekt.Vstest.Coverage.Report |  99.99%        |
=================================================

Roadmap

Provide awesome experience to view code coverage data in VS Code which is collected by "dotnet test"

Idea inspired by Scott Hanselman blog and .NET Core developers( special thanks to @sesispla for bringing blog to our attention) ask from vstest issue

About

Provide awesome experience to view code coverage data in VS Code which is collected by "dotnet test". This project part of @microsoft hackthon week https://garagehackbox.azurewebsites.net/hackathons/1214/projects/70923

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%