Skip to content

Commit 64a7a5e

Browse files
authored
Merge pull request #115 from udlose/performance/reduce-allocations
Performance/reduce allocations, increase test coverage, configure code coverage, fix race condition
2 parents 9aabe1b + 643fcd0 commit 64a7a5e

File tree

13 files changed

+2847
-133
lines changed

13 files changed

+2847
-133
lines changed

.github/workflows/dotnet.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ jobs:
2424
dotnet-version: 6.0.x
2525
- name: Restore dependencies
2626
run: dotnet restore
27+
- name: Build netstandard2.0 libraries
28+
run: |
29+
dotnet build src/TextMateSharp/TextMateSharp.csproj --no-restore
30+
dotnet build src/TextMateSharp.Grammars/TextMateSharp.Grammars.csproj --no-restore
2731
- name: Build
2832
run: dotnet build --no-restore
2933
- name: Test

.runsettings

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<RunSettings>
2+
<DataCollectionRunSettings>
3+
<DataCollectors>
4+
<DataCollector friendlyName="Code Coverage" uri="datacollector://Microsoft/CodeCoverage/2.0">
5+
<Configuration>
6+
<CodeCoverage>
7+
<ModulePaths>
8+
<Include>
9+
<ModulePath>.*\.dll$</ModulePath>
10+
</Include>
11+
<Exclude>
12+
<ModulePath>.*Tests\.dll$</ModulePath>
13+
<ModulePath>.*Demo\.dll$</ModulePath>
14+
<!-- Standard system/third-party exclusions -->
15+
<ModulePath>.*Microsoft\..*</ModulePath>
16+
<ModulePath>.*System\..*</ModulePath>
17+
<ModulePath>.*Moq\.dll$</ModulePath>
18+
<ModulePath>.*nunit.*</ModulePath>
19+
</Exclude>
20+
</ModulePaths>
21+
22+
<!-- Standard practice to exclude the test projects themselves -->
23+
<IncludeTestAssembly>False</IncludeTestAssembly>
24+
</CodeCoverage>
25+
</Configuration>
26+
</DataCollector>
27+
</DataCollectors>
28+
</DataCollectionRunSettings>
29+
</RunSettings>

TextMateSharp.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TextMateSharp.Grammars", "s
1313
EndProject
1414
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SolutionItems", "SolutionItems", "{FB55729C-1952-4D20-BFE7-C3202B160A0B}"
1515
ProjectSection(SolutionItems) = preProject
16+
.runsettings = .runsettings
1617
build\Directory.Build.props = build\Directory.Build.props
1718
build\SourceLink.props = build\SourceLink.props
1819
EndProjectSection

src/TextMateSharp.Benchmarks/TextMateSharp.Benchmarks.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="BenchmarkDotNet" Version="0.14.0" />
11+
<PackageReference Include="BenchmarkDotNet" Version="0.15.8" />
1212
</ItemGroup>
1313

1414
<ItemGroup>

0 commit comments

Comments
 (0)