Skip to content

Commit 919cc33

Browse files
committed
Merge branch 'benchmark' into deduplication
2 parents 404ff10 + 14d31ae commit 919cc33

File tree

4 files changed

+18
-2
lines changed

4 files changed

+18
-2
lines changed

Libraries/Build.ps1

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,16 @@ ForEach ($p in $client_projects) {
5656

5757
Write-Host "Building Client Tests" -ForegroundColor Yellow
5858

59-
msbuild "$source_dir\Tests\Exceptionless.Tests.csproj" /p:Configuration="$configuration" /t:Rebuild /p:NoWarn="1591 1711 1712 1572 1573 1574" /verbosity:minimal
59+
msbuild "$source_dir\Tests\Exceptionless.Tests.csproj" `
60+
/p:Configuration="$configuration" `
61+
/p:Platform="AnyCPU" `
62+
/t:Rebuild `
63+
/p:NoWarn="1591 1711 1712 1572 1573 1574" `
64+
/verbosity:minimal `
65+
/p:DefineConstants="`"TRACE;NET40`"" `
66+
/p:TargetFrameworkVersionProperty="NET40" `
67+
/p:TargetFrameworkProfile="" `
68+
/p:TargetPortable="false"
6069

6170
Write-Host "Finished building Client Tests" -ForegroundColor Yellow
6271

Source/Tests/Exceptionless.Tests.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@
135135
<HintPath>..\..\packages\xunit.extensibility.execution.2.1.0\lib\net45\xunit.execution.desktop.dll</HintPath>
136136
<Private>True</Private>
137137
</Reference>
138+
<Reference Include="System.Threading.Tasks, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Condition="'$(TargetFrameworkVersionProperty)' == 'NET40'">
139+
<Visible>false</Visible>
140+
</Reference>
138141
</ItemGroup>
139142
<ItemGroup>
140143
<Compile Include="..\GlobalAssemblyInfo.cs">

Source/Tests/Plugins/PluginTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ public void RunBenchmark() {
612612
_writer.WriteLine(report.ToString());
613613

614614
var benchmarkMedianMilliseconds = report.ResultStatistics.Median / 1000000;
615-
_writer.WriteLine($"{benchmark.ShortInfo} - {benchmarkMedianMilliseconds:0.00}ms");
615+
_writer.WriteLine(String.Format("{0} - {1:0.00}ms", benchmark.ShortInfo, benchmarkMedianMilliseconds));
616616
}
617617
}
618618

appveyor.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ before_build:
2424
build_script:
2525
- ps: .\Libraries\Build.ps1
2626

27+
test:
28+
assemblies:
29+
- '**\*.Tests.dll'
30+
2731
after_test:
2832
- ps: .\Libraries\Package.ps1
2933

0 commit comments

Comments
 (0)