Skip to content

Commit

Permalink
Added xUnit sample
Browse files Browse the repository at this point in the history
  • Loading branch information
gubpalma committed Apr 7, 2024
1 parent 95e3327 commit 17de7bb
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/xunit_6_0_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Run Automated Tests

on:
push:
branches: [ master ]
jobs:
run-tests:
runs-on: ubuntu-latest
env:
MAJOR_VERSION: 6
MINOR_VERSION: 0
SOLUTION_PATH: ./src/6.0/
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
- name: Remove annotations
run: echo "::remove-matcher owner=csc::"
- name: Install specflow-to-markdown tool
run: dotnet tool install -g Gman.SpecFlowToMarkdown
- name: Restore dependencies
run: dotnet restore $SOLUTION_PATH
- name: Build
run: dotnet build $SOLUTION_PATH --no-restore --ignore-failed-sources -c Release
- name: Test
run: dotnet test $SOLUTION_PATH --no-restore --verbosity normal --logger "trx;LogFileName=test-results.trx"
- name: Run SpecFlow To Markdown Tool
if: always()
run: specflow-to-markdown ./ My.Test.Library.X.Unit.Tests.dll ./ TestExecution.json ./MARKDOWN_TEST_SUMMARY.md
- name: Checks action
uses: LouisBrunner/checks-action@v2.0.0
if: always()
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: SpecFlow Test Summary (xUnit 6.0)
conclusion: ${{ job.status }}
output: |
{"summary":"${{ steps.test.outputs.summary }}"}
output_text_description_file: ./MARKDOWN_TEST_SUMMARY.md

0 comments on commit 17de7bb

Please sign in to comment.