Skip to content

Commit 36b0591

Browse files
authored
Merge pull request #257 from tonyhallett/feature-map-bar-glyphs
coverage marks ( optional with vs options ) in the overview margin. …
2 parents bf25e4f + 3734c5b commit 36b0591

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+768
-179
lines changed

Art/preview-coverage.png

529 KB
Loading

Art/preview-subject.png

-35.7 KB
Binary file not shown.

Art/preview-test.png

-32.3 KB
Binary file not shown.

FineCodeCoverage/FineCodeCoverage.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@
6565
<Link>Resources\logo.png</Link>
6666
<IncludeInVSIX>true</IncludeInVSIX>
6767
</Content>
68-
<Content Include="..\Art\preview-subject.png">
69-
<Link>Resources\preview-subject.png</Link>
68+
<Content Include="..\Art\preview-coverage.png">
69+
<Link>Resources\preview-coverage.png</Link>
7070
<IncludeInVSIX>true</IncludeInVSIX>
7171
</Content>
7272
<Content Include="..\LICENSE">

FineCodeCoverage/source.extension.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ internal sealed partial class Vsix
1111
public const string Name = "Fine Code Coverage";
1212
public const string Description = @"Visualize unit test code coverage easily for free in Visual Studio Community Edition (and other editions too)";
1313
public const string Language = "en-US";
14-
public const string Version = "1.0.0";
14+
public const string Version = "1.1.0";
1515
public const string Author = "Fortune Ngwenya";
16-
public const string Tags = "visual studio, code coverage, c#, vb, .net core, coverlet, unit test, free, community edition";
16+
public const string Tags = "visual studio; code coverage; c#; vb; .net core; coverlet; unit test; free; community edition";
1717
}
1818
}

FineCodeCoverage/source.extension.vsixmanifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<MoreInfo>https://marketplace.visualstudio.com/items?itemName=FortuneNgwenya.FineCodeCoverage</MoreInfo>
88
<License>Resources\LICENSE</License>
99
<Icon>Resources\logo.png</Icon>
10-
<PreviewImage>Resources\preview-subject.png</PreviewImage>
10+
<PreviewImage>Resources\preview-coverage.png</PreviewImage>
1111
<Tags>visual studio; code coverage; c#; vb; .net core; coverlet; unit test; free; community edition</Tags>
1212
</Metadata>
1313
<Installation>

FineCodeCoverage2022/FineCodeCoverage2022.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@
5757
<Link>Resources\logo.png</Link>
5858
<IncludeInVSIX>true</IncludeInVSIX>
5959
</Content>
60-
<Content Include="..\Art\preview-subject.png">
61-
<Link>Resources\preview-subject.png</Link>
62-
<IncludeInVSIX>true</IncludeInVSIX>
63-
</Content>
6460
<VSCTCompile Include="..\Shared Files\OutputToolWindowPackage.vsct">
6561
<Link>OutputToolWindowPackage.vsct</Link>
6662
<ResourceName>Menus.ctmenu</ResourceName>
6763
</VSCTCompile>
64+
<Content Include="..\Art\preview-coverage.png">
65+
<Link>Resources\preview-coverage.png</Link>
66+
<IncludeInVSIX>true</IncludeInVSIX>
67+
</Content>
6868
<Content Include="..\Shared Files\Resources\dummyReportToProcess.html">
6969
<Link>Resources\dummyReportToProcess.html</Link>
7070
<IncludeInVSIX>true</IncludeInVSIX>

FineCodeCoverage2022/source.extension.vsixmanifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<MoreInfo>https://marketplace.visualstudio.com/items?itemName=FortuneNgwenya.FineCodeCoverage</MoreInfo>
88
<License>Resources\LICENSE</License>
99
<Icon>Resources\logo.png</Icon>
10-
<PreviewImage>Resources\preview-subject.png</PreviewImage>
10+
<PreviewImage>Resources\preview-coverage.png</PreviewImage>
1111
<Tags>visual studio; code coverage; c#; vb; .net core; coverlet; unit test; free; community edition</Tags>
1212
</Metadata>
1313
<Installation>

FineCodeCoverageTests/AppOptionsProvider_Tests.cs

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,30 @@ public void Should_Default_Enabled_True()
144144
DefaultTest(appOptions => appOptions.Enabled = true);
145145
}
146146

147+
[Test]
148+
public void Should_Default_True_ShowCoverageInOverviewMargin()
149+
{
150+
DefaultTest(appOptions => appOptions.ShowCoverageInOverviewMargin = true);
151+
}
152+
153+
[Test]
154+
public void Should_Default_True_ShowCoveredInOverviewMargin()
155+
{
156+
DefaultTest(appOptions => appOptions.ShowCoveredInOverviewMargin = true);
157+
}
158+
159+
[Test]
160+
public void Should_Default_True_ShowUncoveredInOverviewMargin()
161+
{
162+
DefaultTest(appOptions => appOptions.ShowUncoveredInOverviewMargin = true);
163+
}
164+
165+
[Test]
166+
public void Should_Default_True_ShowPartiallyCoveredInOverviewMargin()
167+
{
168+
DefaultTest(appOptions => appOptions.ShowPartiallyCoveredInOverviewMargin = true);
169+
}
170+
147171
[Test]
148172
public void Should_Not_Default_Any_Other_AppOptions_Properties()
149173
{
@@ -169,6 +193,10 @@ public void Should_Not_Default_Any_Other_AppOptions_Properties()
169193
nameof(IAppOptions.ThresholdForNPathComplexity),
170194
nameof(IAppOptions.ThresholdForCyclomaticComplexity),
171195
nameof(IAppOptions.NamespacedClasses),
196+
nameof(IAppOptions.ShowCoverageInOverviewMargin),
197+
nameof(IAppOptions.ShowCoveredInOverviewMargin),
198+
nameof(IAppOptions.ShowUncoveredInOverviewMargin),
199+
nameof(IAppOptions.ShowPartiallyCoveredInOverviewMargin)
172200
};
173201
CollectionAssert.AreEquivalent(expectedSetters.Select(s => $"set_{s}"), invocationNames);
174202
}
@@ -269,7 +297,11 @@ internal void Should_Use_Deseralized_String_From_Store_For_AppOption_Property(Fu
269297
{ nameof(IAppOptions.ThresholdForCyclomaticComplexity),1},
270298
{ nameof(IAppOptions.ThresholdForNPathComplexity),1},
271299
{ nameof(IAppOptions.ToolsDirectory),"ToolsDirectory"},
272-
{ nameof(IAppOptions.RunMsCodeCoverage), RunMsCodeCoverage.IfInRunSettings}
300+
{ nameof(IAppOptions.RunMsCodeCoverage), RunMsCodeCoverage.IfInRunSettings},
301+
{ nameof(IAppOptions.ShowCoverageInOverviewMargin),true},
302+
{ nameof(IAppOptions.ShowCoveredInOverviewMargin),true},
303+
{ nameof(IAppOptions.ShowPartiallyCoveredInOverviewMargin),true},
304+
{ nameof(IAppOptions.ShowUncoveredInOverviewMargin),true},
273305
};
274306
var mockJsonConvertService = autoMocker.GetMock<IJsonConvertService>();
275307
mockJsonConvertService.Setup(

FineCodeCoverageTests/MsCodeCoverage/RunSettingsTemplateReplacementsFactory_Tests.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,5 +645,9 @@ internal class TestCoverageProjectOptions : IAppOptions
645645
public bool IncludeReferencedProjects { get; set; }
646646

647647
public string ToolsDirectory { get; set; }
648+
public bool ShowCoverageInOverviewMargin { get; set; }
649+
public bool ShowCoveredInOverviewMargin { get; set; }
650+
public bool ShowUncoveredInOverviewMargin { get; set; }
651+
public bool ShowPartiallyCoveredInOverviewMargin { get; set; }
648652
}
649653
}

0 commit comments

Comments
 (0)