Skip to content

Commit

Permalink
## 5.3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
vbilopav committed Aug 1, 2023
1 parent 7c83b47 commit aeefcad
Show file tree
Hide file tree
Showing 7 changed files with 53 additions and 280 deletions.
8 changes: 8 additions & 0 deletions PgRoutiner.sln
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
README.md = README.md
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PgRoutinerTests", "PgRoutinerTests\PgRoutinerTests.csproj", "{71F5F45D-5F7F-416F-BBFB-04BA50607CF3}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -26,6 +28,12 @@ Global
{BCCC67BF-188D-4107-902A-5930CBDD8688}.Release|Any CPU.Build.0 = Release|Any CPU
{BCCC67BF-188D-4107-902A-5930CBDD8688}.SelfContained|Any CPU.ActiveCfg = SelfContained|Any CPU
{BCCC67BF-188D-4107-902A-5930CBDD8688}.SelfContained|Any CPU.Build.0 = SelfContained|Any CPU
{71F5F45D-5F7F-416F-BBFB-04BA50607CF3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{71F5F45D-5F7F-416F-BBFB-04BA50607CF3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{71F5F45D-5F7F-416F-BBFB-04BA50607CF3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{71F5F45D-5F7F-416F-BBFB-04BA50607CF3}.Release|Any CPU.Build.0 = Release|Any CPU
{71F5F45D-5F7F-416F-BBFB-04BA50607CF3}.SelfContained|Any CPU.ActiveCfg = Debug|Any CPU
{71F5F45D-5F7F-416F-BBFB-04BA50607CF3}.SelfContained|Any CPU.Build.0 = Debug|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
276 changes: 12 additions & 264 deletions PgRoutiner/Builder/CodeBuilders/UnitTests/TestFixtures.cs

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions PgRoutiner/Builder/CodeBuilders/UnitTests/UnitTestBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,19 @@ public static void BuildUnitTests(NpgsqlConnection connection, string schemaFile
return;
}
Process.Run("dotnet", "add package Microsoft.NET.Test.Sdk", dir);
Process.Run("dotnet", "add package Microsoft.Extensions.Configuration", dir);
Process.Run("dotnet", "add package Microsoft.Extensions.Configuration.Json", dir);
Process.Run("dotnet", "add package Microsoft.Extensions.Configuration.Binder", dir);
Process.Run("dotnet", "add package xunit", dir);
Process.Run("dotnet", "add package xunit.runner.visualstudio", dir);
Process.Run("dotnet", "add package coverlet.collector", dir);

Process.Run("dotnet", "add package Norm.net", dir);
Process.Run("dotnet", "add package Npgsql", dir);
Process.Run("dotnet", "add package FluentAssertions", dir);
Process.Run("dotnet", "add package XUnit.Npgsql", dir);

if (extensions.Any(e => e.Methods.Any(m => m.Sync == false)))
{
Process.Run("dotnet", "add package System.Linq.Async", dir);
}
Process.Run("dotnet", "add package Npgsql", dir);
Process.Run("dotnet", "add package xunit", dir);
Process.Run("dotnet", "add package xunit.runner.visualstudio", dir);
Process.Run("dotnet", "add package coverlet.collector", dir);
Process.Run("dotnet", "add package FluentAssertions", dir);
}
else
{
Expand Down
4 changes: 2 additions & 2 deletions PgRoutiner/Builder/CodeBuilders/UnitTests/UnitTestCode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ private void Build()
Class.AppendLine($"{I1}///</summary>");
}

Class.AppendLine($"{I1}public class {Name} : PostgreSqlConfigurationFixture");
Class.AppendLine($"{I1}public class {Name} : PostgreSqlUnitTest");
Class.AppendLine($"{I1}{{");
Class.AppendLine($"{I2}public {Name}(PostgreSqlUnitTests tests) : base(tests) {{ }}");
Class.AppendLine($"{I2}public {Name}(PostgreSqlUnitTestFixture tests) : base(tests) {{ }}");
if (ext == null || ext.Methods == null || !ext.Methods.Any())
{
BuildEmptyTest();
Expand Down
14 changes: 14 additions & 0 deletions PgRoutiner/Models/App/SearchAllListlabelsResult.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// pgroutiner auto-generated code
#pragma warning disable CS8632
#pragma warning disable CS8618

namespace PgRoutiner.Models.App;

public class SearchAllListlabelsResult
{
public Guid? Id { get; set; }
public string? Label { get; set; }
public string? DbtablesSchema { get; set; }
public string? DbtablesName { get; set; }
public Guid? DbtablesId { get; set; }
}
9 changes: 3 additions & 6 deletions PgRoutiner/PgRoutiner.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
<PackageProjectUrl Condition="'$(Configuration)'!='SelfContained'">https://github.com/vb-consulting/PgRoutiner</PackageProjectUrl>
<PackageTags Condition="'$(Configuration)'!='SelfContained'">PostgreSQL</PackageTags>
<GeneratePackageOnBuild Condition="'$(Configuration)'!='SelfContained'">true</GeneratePackageOnBuild>
<Version>5.3.6.0</Version>
<Version>5.3.7.0</Version>
<PackageId Condition="'$(Configuration)'!='SelfContained'">dotnet-pgroutiner</PackageId>
<AssemblyVersion>5.3.6.0</AssemblyVersion>
<FileVersion>5.3.6.0</FileVersion>
<AssemblyVersion>5.3.7.0</AssemblyVersion>
<FileVersion>5.3.7.0</FileVersion>
<Configurations>Debug;Release;SelfContained</Configurations>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
</PropertyGroup>
Expand All @@ -27,11 +27,8 @@
</PropertyGroup>

<ItemGroup>
<Compile Remove="Test\**" />
<Compile Remove="_exe\**" />
<EmbeddedResource Remove="Test\**" />
<EmbeddedResource Remove="_exe\**" />
<None Remove="Test\**" />
<None Remove="_exe\**" />
</ItemGroup>

Expand Down
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# VERSION HISTORY

## 5.3.7

### Unit test section

Generated unit tests project will now use [XUnit.Npgsql](https://github.com/vb-consulting/XUnit.Npgsql) library.

## 5.3.6

### Fix wrong counts in TOC of markdown document.
Expand Down

0 comments on commit aeefcad

Please sign in to comment.