Skip to content

Commit

Permalink
Added Xunit adapter (#6)
Browse files Browse the repository at this point in the history
* Added XUnit adapter

---------

Co-authored-by: Dmitry.Gridnev <[email protected]>
  • Loading branch information
testit-owner and Dmitry.Gridnev authored Jun 1, 2023
1 parent 8af03e3 commit 5e86a39
Show file tree
Hide file tree
Showing 65 changed files with 2,589 additions and 224 deletions.
4 changes: 2 additions & 2 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name-template: 'v$NEXT_PATCH_VERSION'
tag-template: 'v$NEXT_PATCH_VERSION'
name-template: '$NEXT_PATCH_VERSION'
tag-template: '$NEXT_PATCH_VERSION'
categories:
- title: '🚀 Features'
labels:
Expand Down
14 changes: 10 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,19 @@ on:
- released

env:
ADAPTER_DIR: ./Tms.Adapter
RUNNER_DIR: ./TmsRunner
NUGET_DIR: ./nuget

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
project: [
./Tms.Adapter,
./Tms.Adapter.Core,
./Tms.Adapter.XUnit
]
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -25,18 +31,18 @@ jobs:
dotnet-version: 6.0.x

- name: Restore dependencies
run: dotnet restore ${{ env.ADAPTER_DIR }}
run: dotnet restore ${{ matrix.project }}

- name: Build project
run: |
dotnet build --configuration Release \
--no-restore ${{ env.ADAPTER_DIR }}
--no-restore ${{ matrix.project }}
- name: Create NuGet package
run: |
dotnet pack --configuration Release \
--no-build --output ${{ env.NUGET_DIR }} \
${{ env.ADAPTER_DIR }}
${{ matrix.project }}
- name: Save artifacts
uses: actions/upload-artifact@v3
Expand Down
18 changes: 11 additions & 7 deletions .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,16 @@ name: Validate
on:
pull_request

env:
PROJECT_DIR: ./src/TestIt.Client
VALIDATION: 1

jobs:
validate:
runs-on: ubuntu-latest
strategy:
matrix:
project: [
./Tms.Adapter,
./TmsRunner
./TmsRunner,
./Tms.Adapter.Core,
./Tms.Adapter.XUnit
]
steps:
- name: Checkout
Expand All @@ -33,6 +31,12 @@ jobs:

test:
runs-on: ubuntu-latest
strategy:
matrix:
project: [
./TmsRunnerTests,
./Tms.Adapter.CoreTests
]
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -43,7 +47,7 @@ jobs:
dotnet-version: 6.0.x

- name: Restore dependencies
run: dotnet restore ./TmsRunnerTests
run: dotnet restore ${{ matrix.project }}

- name: Build project
run: dotnet test ./TmsRunnerTests
run: dotnet test ${{ matrix.project }}
18 changes: 18 additions & 0 deletions DotnetAdapters.sln
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tms.Adapter", "Tms.Adapter\
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TmsRunnerTests", "TmsRunnerTests\TmsRunnerTests.csproj", "{5ACF7A63-C444-43D5-87A9-90D43801D28A}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tms.Adapter.Core", "Tms.Adapter.Core\Tms.Adapter.Core.csproj", "{671EC822-3ED1-4797-850E-CA9952B8E5B3}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tms.Adapter.CoreTests", "Tms.Adapter.CoreTests\Tms.Adapter.CoreTests.csproj", "{11F581C6-4B0F-424C-8160-6F0C4055C4F2}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tms.Adapter.XUnit", "Tms.Adapter.XUnit\Tms.Adapter.XUnit.csproj", "{B5612734-4F6B-4801-9D17-5A1195C8D2A0}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -32,6 +38,18 @@ Global
{5ACF7A63-C444-43D5-87A9-90D43801D28A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5ACF7A63-C444-43D5-87A9-90D43801D28A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5ACF7A63-C444-43D5-87A9-90D43801D28A}.Release|Any CPU.Build.0 = Release|Any CPU
{671EC822-3ED1-4797-850E-CA9952B8E5B3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{671EC822-3ED1-4797-850E-CA9952B8E5B3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{671EC822-3ED1-4797-850E-CA9952B8E5B3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{671EC822-3ED1-4797-850E-CA9952B8E5B3}.Release|Any CPU.Build.0 = Release|Any CPU
{11F581C6-4B0F-424C-8160-6F0C4055C4F2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{11F581C6-4B0F-424C-8160-6F0C4055C4F2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{11F581C6-4B0F-424C-8160-6F0C4055C4F2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{11F581C6-4B0F-424C-8160-6F0C4055C4F2}.Release|Any CPU.Build.0 = Release|Any CPU
{B5612734-4F6B-4801-9D17-5A1195C8D2A0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B5612734-4F6B-4801-9D17-5A1195C8D2A0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B5612734-4F6B-4801-9D17-5A1195C8D2A0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B5612734-4F6B-4801-9D17-5A1195C8D2A0}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
Loading

0 comments on commit 5e86a39

Please sign in to comment.