Skip to content

Commit c82ebb0

Browse files
author
Ethan Bishop
committed
Add unit tests project to solution, create slnx file
We can't use the slnx file yet though as none of the dotnet tooling supports it other than for writing.
1 parent dad17e1 commit c82ebb0

4 files changed

Lines changed: 14 additions & 8 deletions

File tree

.github/workflows/docker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
with:
2828
dotnet-version: "8.x"
2929
- name: Unit tests
30-
run: dotnet test --filter "FullyQualifiedName=Unit.Tests"
30+
run: dotnet test tests/Unit.Tests/Unit.Tests.csproj
3131
- name: Set up QEMU
3232
uses: docker/setup-qemu-action@v2
3333
- name: Set up Docker Buildx
@@ -41,7 +41,7 @@ jobs:
4141
- name: E2E tests
4242
run: |
4343
docker run --rm --detach -p 8080:8080 --name pdf2html ${{ env.TEST_TAG }}
44-
dotnet test --filter "FullyQualifiedName=E2E.Tests"
44+
dotnet test tests/E2E.Tests/E2E.Tests.csproj
4545
docker stop pdf2html
4646
- if: github.ref_name == 'main' || github.ref_type == 'tag'
4747
name: Login to Docker Hub

pdf2html.sln

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{C361585C
1111
EndProject
1212
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "E2E.Tests", "tests\E2E.Tests\E2E.Tests.csproj", "{9CAB9112-6B91-4615-A34A-B3C66FD3FAE1}"
1313
EndProject
14+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Unit.Tests", "tests\Unit.Tests\Unit.Tests.csproj", "{1174DAD4-FE63-4CF6-9F23-3B9FB6BA409A}"
15+
EndProject
1416
Global
1517
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1618
Debug|Any CPU = Debug|Any CPU
@@ -28,9 +30,14 @@ Global
2830
{9CAB9112-6B91-4615-A34A-B3C66FD3FAE1}.Debug|Any CPU.Build.0 = Debug|Any CPU
2931
{9CAB9112-6B91-4615-A34A-B3C66FD3FAE1}.Release|Any CPU.ActiveCfg = Release|Any CPU
3032
{9CAB9112-6B91-4615-A34A-B3C66FD3FAE1}.Release|Any CPU.Build.0 = Release|Any CPU
33+
{1174DAD4-FE63-4CF6-9F23-3B9FB6BA409A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
34+
{1174DAD4-FE63-4CF6-9F23-3B9FB6BA409A}.Debug|Any CPU.Build.0 = Debug|Any CPU
35+
{1174DAD4-FE63-4CF6-9F23-3B9FB6BA409A}.Release|Any CPU.ActiveCfg = Release|Any CPU
36+
{1174DAD4-FE63-4CF6-9F23-3B9FB6BA409A}.Release|Any CPU.Build.0 = Release|Any CPU
3137
EndGlobalSection
3238
GlobalSection(NestedProjects) = preSolution
3339
{D3B9B4F8-F097-4F12-AB86-72CAE0B4577C} = {ABE1E425-AA84-46A5-98EA-9B6D622EF8A5}
3440
{9CAB9112-6B91-4615-A34A-B3C66FD3FAE1} = {C361585C-8D3B-4CA0-A0BF-DB74DDB00EBE}
41+
{1174DAD4-FE63-4CF6-9F23-3B9FB6BA409A} = {C361585C-8D3B-4CA0-A0BF-DB74DDB00EBE}
3542
EndGlobalSection
3643
EndGlobal

pdf2html.sln.DotSettings.user

Lines changed: 0 additions & 6 deletions
This file was deleted.

pdf2html.slnx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<Solution>
2+
<Project Path="src/Pdf2Html/Pdf2Html.csproj" Type="Classic C#" />
3+
<Project Path="tests/E2E.Tests/E2E.Tests.csproj" Type="Classic C#" />
4+
<Project Path="tests/Unit.Tests/Unit.Tests.csproj" Type="Classic C#" />
5+
</Solution>

0 commit comments

Comments
 (0)