Skip to content

Commit 8dc9c76

Browse files
committed
feat: Python TRX/Cobertura HTML report; run-test-case.sh; unit-test workflow
Adds generate_test_report.py, run-test-case/run-unit-test-case.sh, unit-test workflow, and test project cleanup .
1 parent 9af371a commit 8dc9c76

6 files changed

Lines changed: 727 additions & 26 deletions

File tree

.github/workflows/unit-test.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Unit Test
2+
on:
3+
pull_request:
4+
push:
5+
6+
jobs:
7+
unit-test:
8+
runs-on: windows-latest
9+
steps:
10+
- name: Checkout repository
11+
uses: actions/checkout@v4.2.2
12+
- name: Setup .NET Core @ Latest
13+
uses: actions/setup-dotnet@v4.3.0
14+
- name: Build solution and run unit tests
15+
run: sh ./Scripts/run-unit-test-case.sh

Contentstack.Utils.Tests/Contentstack.Utils.Tests.csproj

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
12-
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
13-
<PackageReference Include="coverlet.collector" Version="6.0.2">
11+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.13.0" />
12+
<PackageReference Include="Newtonsoft.Json" Version="13.0.4" />
13+
<PackageReference Include="coverlet.collector" Version="6.0.4">
1414
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1515
<PrivateAssets>all</PrivateAssets>
1616
</PackageReference>
@@ -21,11 +21,6 @@
2121
<PrivateAssets>all</PrivateAssets>
2222
</PackageReference>
2323
</ItemGroup>
24-
<ItemGroup>
25-
<Reference Include="Contentstack.Utils">
26-
<HintPath>..\Contentstack.Utils\bin\Debug\netstandard2.0\Contentstack.Utils.dll</HintPath>
27-
</Reference>
28-
</ItemGroup>
2924
<ItemGroup>
3025
<ProjectReference Include="..\Contentstack.Utils\Contentstack.Utils.csproj" />
3126
</ItemGroup>

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<Project>
22
<PropertyGroup>
3-
<Version>1.0.7</Version>
3+
<Version>1.1.0</Version>
44
</PropertyGroup>
55
</Project>

0 commit comments

Comments
 (0)