This is an automated email from the ASF dual-hosted git repository. ptupitsyn pushed a commit to branch ignite-22133-bak in repository https://gitbox.apache.org/repos/asf/ignite-3.git
commit bbbf098da9802eaec425490eb0e9abcb7d8340c2 Author: Pavel Tupitsyn <[email protected]> AuthorDate: Fri Jul 11 12:04:42 2025 +0300 Add xunit FunctionalTests project --- .../.editorconfig | 52 ++++++++++++++++++++++ ...nite.EntityFrameworkCore.FunctionalTests.csproj | 28 ++++++++++++ .../UnitTest1.cs | 24 ++++++++++ .../Apache.Ignite.EntityFrameworkCore.Tests.csproj | 1 - modules/platforms/dotnet/Apache.Ignite.sln | 6 +++ 5 files changed, 110 insertions(+), 1 deletion(-) diff --git a/modules/platforms/dotnet/Apache.Ignite.EntityFrameworkCore.FunctionalTests/.editorconfig b/modules/platforms/dotnet/Apache.Ignite.EntityFrameworkCore.FunctionalTests/.editorconfig new file mode 100644 index 00000000000..73a875932d4 --- /dev/null +++ b/modules/platforms/dotnet/Apache.Ignite.EntityFrameworkCore.FunctionalTests/.editorconfig @@ -0,0 +1,52 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# All files +[*] + +# Code analysis +dotnet_diagnostic.SA0001.severity = none # Enable xmldoc file generation +dotnet_diagnostic.SA1600.severity = none # Elements should be documented +dotnet_diagnostic.SA1601.severity = none # Partial classes should be documented +dotnet_diagnostic.SA1602.severity = none # Enums should be documented +dotnet_diagnostic.CA1001.severity = none # Types that own disposable fields should be disposable +dotnet_diagnostic.CA1063.severity = none # Implement IDisposable correctly +dotnet_diagnostic.CA1816.severity = none # Dispose must call SuppressFinalize +dotnet_diagnostic.CA2000.severity = none # Call Dispose +dotnet_diagnostic.CA2007.severity = none # Call ConfigureAwait (not needed in tests) +dotnet_diagnostic.CA1031.severity = none # DoNotCatchGeneralExceptionTypes +dotnet_diagnostic.CA1801.severity = none # UnusedParameters +dotnet_diagnostic.CA1062.severity = none # Validate parameters. +dotnet_diagnostic.CA1308.severity = none # Normalize to upper case +dotnet_diagnostic.CA1014.severity = none # Mark assemblies with CLSCompliant +dotnet_diagnostic.CA1002.severity = none # Do not expose generic lists +dotnet_diagnostic.CA1051.severity = none # Do not declare visible instance fields +dotnet_diagnostic.CA1720.severity = none # Identifier contains type name +dotnet_diagnostic.CA1307.severity = none # Specify StringComparison for clarity +dotnet_diagnostic.CA2201.severity = none # Do not raise reserved exception types +dotnet_diagnostic.CA1508.severity = none # Avoid dead conditional code +dotnet_diagnostic.CA1305.severity = none # Specify IFormatProvider +dotnet_diagnostic.CA1819.severity = none # Properties should not return arrays +dotnet_diagnostic.CA1812.severity = none # Avoid uninstantiated internal classes +dotnet_diagnostic.CA5394.severity = none # Use secure random +dotnet_diagnostic.CA2227.severity = none # Collection properties should be read only + +dotnet_diagnostic.NUnit2005.severity = none # Consider using the constraint model +dotnet_diagnostic.NUnit2006.severity = none # Consider using the constraint model +dotnet_diagnostic.NUnit2015.severity = none # Consider using the constraint model +dotnet_diagnostic.NUnit2031.severity = none # Consider using the constraint model + +# ReSharper (refer to https://www.jetbrains.com/help/resharper/Reference__Code_Inspections_CSHARP.html) +resharper_using_statement_resource_initialization_highlighting = none # Do not use object initializer for 'using' variable diff --git a/modules/platforms/dotnet/Apache.Ignite.EntityFrameworkCore.FunctionalTests/Apache.Ignite.EntityFrameworkCore.FunctionalTests.csproj b/modules/platforms/dotnet/Apache.Ignite.EntityFrameworkCore.FunctionalTests/Apache.Ignite.EntityFrameworkCore.FunctionalTests.csproj new file mode 100644 index 00000000000..02a77c0a544 --- /dev/null +++ b/modules/platforms/dotnet/Apache.Ignite.EntityFrameworkCore.FunctionalTests/Apache.Ignite.EntityFrameworkCore.FunctionalTests.csproj @@ -0,0 +1,28 @@ +<Project Sdk="Microsoft.NET.Sdk"> + + <PropertyGroup> + <TargetFramework>net8.0</TargetFramework> + <ImplicitUsings>enable</ImplicitUsings> + <Nullable>enable</Nullable> + + <IsPackable>false</IsPackable> + <IsTestProject>true</IsTestProject> + </PropertyGroup> + + <ItemGroup> + <PackageReference Include="coverlet.collector" Version="6.0.0"/> + <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0"/> + <PackageReference Include="xunit" Version="2.5.3"/> + <PackageReference Include="xunit.runner.visualstudio" Version="2.5.3"/> + + <PackageReference Include="Microsoft.EntityFrameworkCore.Relational.Specification.Tests" Version="8.0.17" /> + </ItemGroup> + + <ItemGroup> + <ProjectReference Include="..\Apache.Ignite.EntityFrameworkCore\Apache.Ignite.EntityFrameworkCore.csproj" /> + </ItemGroup> + + <ItemGroup> + <Using Include="Xunit"/> + </ItemGroup> +</Project> diff --git a/modules/platforms/dotnet/Apache.Ignite.EntityFrameworkCore.FunctionalTests/UnitTest1.cs b/modules/platforms/dotnet/Apache.Ignite.EntityFrameworkCore.FunctionalTests/UnitTest1.cs new file mode 100644 index 00000000000..49c6bd7ec9a --- /dev/null +++ b/modules/platforms/dotnet/Apache.Ignite.EntityFrameworkCore.FunctionalTests/UnitTest1.cs @@ -0,0 +1,24 @@ +// Licensed to the Apache Software Foundation (ASF) under one or more +// contributor license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright ownership. +// The ASF licenses this file to You under the Apache License, Version 2.0 +// (the "License"); you may not use this file except in compliance with +// the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +namespace Apache.Ignite.EntityFrameworkCore.FunctionalTests; + +public class UnitTest1 +{ + [Fact] + public void Test1() + { + } +} diff --git a/modules/platforms/dotnet/Apache.Ignite.EntityFrameworkCore.Tests/Apache.Ignite.EntityFrameworkCore.Tests.csproj b/modules/platforms/dotnet/Apache.Ignite.EntityFrameworkCore.Tests/Apache.Ignite.EntityFrameworkCore.Tests.csproj index a4931240f21..c8a504a5825 100644 --- a/modules/platforms/dotnet/Apache.Ignite.EntityFrameworkCore.Tests/Apache.Ignite.EntityFrameworkCore.Tests.csproj +++ b/modules/platforms/dotnet/Apache.Ignite.EntityFrameworkCore.Tests/Apache.Ignite.EntityFrameworkCore.Tests.csproj @@ -14,7 +14,6 @@ <PackageReference Include="NUnit3TestAdapter" Version="4.5.0"/> <PackageReference Include="System.Linq.Async" Version="6.0.1"/> <PackageReference Include="NUnit.Analyzers" Version="3.6.1"/> - <PackageReference Include="Microsoft.EntityFrameworkCore.Relational.Specification.Tests" Version="8.0.17" /> </ItemGroup> <ItemGroup> diff --git a/modules/platforms/dotnet/Apache.Ignite.sln b/modules/platforms/dotnet/Apache.Ignite.sln index 2c45e128e93..6c0dd42568a 100644 --- a/modules/platforms/dotnet/Apache.Ignite.sln +++ b/modules/platforms/dotnet/Apache.Ignite.sln @@ -34,6 +34,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Apache.Ignite.EntityFramewo EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Apache.Ignite.EntityFrameworkCore.Tests", "Apache.Ignite.EntityFrameworkCore.Tests\Apache.Ignite.EntityFrameworkCore.Tests.csproj", "{30752D89-C9EB-4116-913E-BEBB49CEBB10}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Apache.Ignite.EntityFrameworkCore.FunctionalTests", "Apache.Ignite.EntityFrameworkCore.FunctionalTests\Apache.Ignite.EntityFrameworkCore.FunctionalTests.csproj", "{97D08E8A-B260-44D3-8D17-BD1EF19EF3F9}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -79,5 +81,9 @@ Global {30752D89-C9EB-4116-913E-BEBB49CEBB10}.Debug|Any CPU.Build.0 = Debug|Any CPU {30752D89-C9EB-4116-913E-BEBB49CEBB10}.Release|Any CPU.ActiveCfg = Release|Any CPU {30752D89-C9EB-4116-913E-BEBB49CEBB10}.Release|Any CPU.Build.0 = Release|Any CPU + {97D08E8A-B260-44D3-8D17-BD1EF19EF3F9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {97D08E8A-B260-44D3-8D17-BD1EF19EF3F9}.Debug|Any CPU.Build.0 = Debug|Any CPU + {97D08E8A-B260-44D3-8D17-BD1EF19EF3F9}.Release|Any CPU.ActiveCfg = Release|Any CPU + {97D08E8A-B260-44D3-8D17-BD1EF19EF3F9}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection EndGlobal
