mirror of
https://github.com/DapperLib/Dapper.git
synced 2026-10-16 21:03:18 +08:00
Tests: move into folders
One of several moves to make this something we can dev on all platforms and build on Actions for v3 onwards.
This commit is contained in:
+3
-1
@@ -1,5 +1,7 @@
|
||||
<Project Sdk="Microsoft.Build.Traversal/2.0.24">
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="*\*.csproj" />
|
||||
<ProjectReference Include="benchmarks/**/*.csproj" />
|
||||
<ProjectReference Include="*/*.csproj" />
|
||||
<ProjectReference Include="tests/**/*.csproj" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -116,7 +116,7 @@ A key feature of Dapper is performance. The following metrics show how long it t
|
||||
|
||||
The benchmarks can be found in [Dapper.Tests.Performance](https://github.com/StackExchange/Dapper/tree/main/Dapper.Tests.Performance) (contributions welcome!) and can be run via:
|
||||
```bash
|
||||
dotnet run -p .\Dapper.Tests.Performance\ -c Release -f netcoreapp3.1 -- -f * --join
|
||||
dotnet run -p .\benchmarks\Dapper.Tests.Performance\ -c Release -f netcoreapp3.1 -- -f * --join
|
||||
```
|
||||
Output from the latest run is:
|
||||
``` ini
|
||||
|
||||
+2
-6
@@ -1,16 +1,12 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<AssemblyName>Dapper.Tests.Performance</AssemblyName>
|
||||
<Title>Dapper.Tests.Performance</Title>
|
||||
<Description>Dapper Core Performance Suite</Description>
|
||||
<OutputType>Exe</OutputType>
|
||||
<GenerateDocumentationFile>false</GenerateDocumentationFile>
|
||||
<TargetFrameworks>net462;netcoreapp3.1</TargetFrameworks>
|
||||
<IsPackable>false</IsPackable>
|
||||
<IsTestProject>false</IsTestProject>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Dapper\Dapper.csproj" />
|
||||
<ProjectReference Include="..\Dapper.Contrib\Dapper.Contrib.csproj" />
|
||||
<PackageReference Include="Dashing" Version="2.2.0" />
|
||||
<PackageReference Include="Belgrade.Sql.Client" Version="1.1.4" />
|
||||
<PackageReference Include="BenchmarkDotNet" Version="0.12.1" />
|
||||
@@ -39,7 +35,7 @@
|
||||
<DefineConstants>$(DefineConstants);NET4X</DefineConstants>
|
||||
</PropertyGroup>
|
||||
<ItemGroup Condition="'$(TargetFramework)' == 'net462'">
|
||||
<ProjectReference Include="..\Dapper.EntityFramework\Dapper.EntityFramework.csproj" />
|
||||
<ProjectReference Include="../../Dapper.EntityFramework/Dapper.EntityFramework.csproj" />
|
||||
<PackageReference Include="Microsoft.SqlServer.Types" Version="14.0.1016.290" />
|
||||
<PackageReference Include="Soma" Version="1.9.0.1" />
|
||||
<PackageReference Include="SubSonic" Version="3.0.0.4" />
|
||||
@@ -0,0 +1,33 @@
|
||||
<Project>
|
||||
<Import Project="$(MSBuildThisFileDirectory)..\Directory.Build.props" />
|
||||
<PropertyGroup>
|
||||
<SignAssembly>false</SignAssembly>
|
||||
<GenerateDocumentationFile>false</GenerateDocumentationFile>
|
||||
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
|
||||
<IsPackable>false</IsPackable>
|
||||
<DefineConstants Condition="'$(OS)' == 'Windows_NT'">$(DefineConstants);WINDOWS</DefineConstants>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="../../Dapper/Dapper.csproj" />
|
||||
<ProjectReference Include="../../Dapper.Contrib/Dapper.Contrib.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition="'$(TargetFramework)' == 'net461'">
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Configuration" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Data.Linq" />
|
||||
<Reference Include="System.Runtime.Caching" />
|
||||
<Reference Include="System.Runtime.Serialization" />
|
||||
<Reference Include="System.Transactions" />
|
||||
<Reference Include="System.Web" />
|
||||
<Reference Include="System.Web.Extensions" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<!-- <Content Include="xunit.runner.json" Condition="'$(OS)' == 'Unix'" CopyToOutputDirectory="PreserveNewest" /> -->
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
+2
-10
@@ -2,26 +2,18 @@
|
||||
<PropertyGroup>
|
||||
<AssemblyName>Dapper.Tests.Contrib</AssemblyName>
|
||||
<Description>Dapper Contrib Test Suite</Description>
|
||||
<GenerateDocumentationFile>false</GenerateDocumentationFile>
|
||||
<TargetFrameworks>netcoreapp3.1;net462</TargetFrameworks>
|
||||
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="..\Dapper.Tests\Helpers\XunitSkippable.cs" Link="Helpers\XunitSkippable.cs" />
|
||||
<Compile Include="../Dapper.Tests/Helpers/XunitSkippable.cs" Link="Helpers/XunitSkippable.cs" />
|
||||
<None Remove="Test.DB.sdf" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Dapper\Dapper.csproj" />
|
||||
<ProjectReference Include="..\Dapper.Contrib\Dapper.Contrib.csproj" />
|
||||
<ProjectReference Include="..\Dapper.SqlBuilder\Dapper.SqlBuilder.csproj" />
|
||||
<ProjectReference Include="../../Dapper.SqlBuilder/Dapper.SqlBuilder.csproj" />
|
||||
<PackageReference Include="Microsoft.Data.Sqlite" Version="2.2.6" />
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.3.0" />
|
||||
<PackageReference Include="MySqlConnector" Version="0.56.0" />
|
||||
<PackageReference Include="System.Data.SqlClient" Version="4.8.1" />
|
||||
<PackageReference Include="xunit" Version="2.4.1" />
|
||||
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition=" '$(TargetFramework)' == 'net462' ">
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
</ItemGroup>
|
||||
@@ -2,9 +2,7 @@
|
||||
<PropertyGroup>
|
||||
<AssemblyName>Dapper.Tests</AssemblyName>
|
||||
<Description>Dapper Core Test Suite</Description>
|
||||
<GenerateDocumentationFile>false</GenerateDocumentationFile>
|
||||
<TargetFrameworks>netcoreapp3.1;net462;net472</TargetFrameworks>
|
||||
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
|
||||
<DefineConstants>$(DefineConstants);MSSQLCLIENT</DefineConstants>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -13,10 +11,8 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Dapper\Dapper.csproj" />
|
||||
<ProjectReference Include="..\Dapper.Contrib\Dapper.Contrib.csproj" />
|
||||
<ProjectReference Include="..\Dapper.ProviderTools\Dapper.ProviderTools.csproj" />
|
||||
<ProjectReference Include="..\Dapper.SqlBuilder\Dapper.SqlBuilder.csproj" />
|
||||
<ProjectReference Include="../../Dapper.ProviderTools/Dapper.ProviderTools.csproj" />
|
||||
<ProjectReference Include="../../Dapper.SqlBuilder/Dapper.SqlBuilder.csproj" />
|
||||
<PackageReference Include="FirebirdSql.Data.FirebirdClient" Version="7.0.0" />
|
||||
<PackageReference Include="Microsoft.Data.SqlClient" Version="1.1.1" />
|
||||
<PackageReference Include="Microsoft.Data.Sqlite" Version="2.2.6" />
|
||||
@@ -25,12 +21,10 @@
|
||||
<PackageReference Include="Npgsql" Version="4.0.9" />
|
||||
<PackageReference Include="System.Data.SqlClient" Version="4.8.1" />
|
||||
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
|
||||
<PackageReference Include="xunit" Version="2.4.1" />
|
||||
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition="'$(TargetFramework)' == 'net462' OR '$(TargetFramework)' == 'net472'">
|
||||
<ProjectReference Include="..\Dapper.EntityFramework\Dapper.EntityFramework.csproj" />
|
||||
<ProjectReference Include="../../Dapper.EntityFramework/Dapper.EntityFramework.csproj" />
|
||||
<Reference Include="System.Data.Linq" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
@@ -0,0 +1,39 @@
|
||||
<Project>
|
||||
<Import Project="$(MSBuildThisFileDirectory)..\Directory.Build.props" />
|
||||
<PropertyGroup>
|
||||
<OutputType>Library</OutputType>
|
||||
<SignAssembly>false</SignAssembly>
|
||||
<GenerateDocumentationFile>false</GenerateDocumentationFile>
|
||||
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
|
||||
<IsPackable>false</IsPackable>
|
||||
|
||||
<DebugType>Full</DebugType>
|
||||
<DefineConstants Condition="'$(OS)' == 'Windows_NT'">$(DefineConstants);WINDOWS</DefineConstants>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="../../Dapper/Dapper.csproj" />
|
||||
<ProjectReference Include="../../Dapper.Contrib/Dapper.Contrib.csproj" />
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.3.0" />
|
||||
<PackageReference Include="xunit" Version="2.4.1" />
|
||||
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition="'$(TargetFramework)' == 'net461'">
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Configuration" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Data.Linq" />
|
||||
<Reference Include="System.Runtime.Caching" />
|
||||
<Reference Include="System.Runtime.Serialization" />
|
||||
<Reference Include="System.Transactions" />
|
||||
<Reference Include="System.Web" />
|
||||
<Reference Include="System.Web.Extensions" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<!-- <Content Include="xunit.runner.json" Condition="'$(OS)' == 'Unix'" CopyToOutputDirectory="PreserveNewest" /> -->
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user