Skip to content
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.

Latest commit

 

History

History
66 lines (50 loc) · 2.85 KB

README.md

File metadata and controls

66 lines (50 loc) · 2.85 KB

vstest.coverage

Build Status Build status Maintenance

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