Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
fangdatto committed Jun 9, 2024
1 parent fc5f053 commit f820251
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 17 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:


jobs:
build_and_test:
Build_and_Test:

env:
BUILD_CONFIG: 'Release'
Expand Down Expand Up @@ -45,9 +45,6 @@ jobs:

- name: Restore dependencies
run: dotnet restore $SOLUTION

- name: Build Project
run: dotnet build $SOLUTION --configuration $BUILD_CONFIG

- name: Run Test
run: dotnet test $SOLUTION --configuration $BUILD_CONFIG --logger "trx;LogFileName=test-results.trx" || true
Expand All @@ -60,3 +57,6 @@ jobs:
path: "**/test-results.trx"
reporter: dotnet-trx
fail-on-error: true

- name: Build Project
run: dotnet build $SOLUTION --configuration $BUILD_CONFIG
30 changes: 17 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ This repository shows an example of dotnet nunit test , repo generation, seleniu

# Seleinum Chrome Browser and Chrome Driver

# steps:
- uses: browser-actions/setup-chrome@v1
with:
chrome-version: 123
# Update Permission for report:
permissions:
issues: write
contents: write
actions: write
checks: write

"# dotnet unit-report"

Expand All @@ -20,29 +22,31 @@ This repository shows an example of dotnet nunit test , repo generation, seleniu
uses: browser-actions/setup-chrome@v1
with:
# Optional: do not specify to match Chrome's version
chrome-version: '123'
chrome-version: '125'

- name: Setup Chrome-driver
uses: nanasess/setup-chromedriver@v2
with:
# Optional: do not specify to match Chrome's version
chromedriver-version: '123.0.6312.122'
# hint-of-deal with errror
chromedriver-version: '125.0.6422.14100'

# Update Permission for report:
https://sjramblings.io/github-actions-resource-not-accessible-by-integration
permissions:
issues: write
contents: write
actions: write
checks: write

# Rest API Example

using System.Net.Http
using System.Net.Http.Headers
# Combine nUnit and MS Test together

# Connect me via linkedin
<PackageReference Include="NUnit" Version="3.13.2" />
<PackageReference Include="NUnit3TestAdapter" Version="4.0.0" />
<PackageReference Include="MSTest.TestAdapter" Version="2.2.7" />
<PackageReference Include="MSTest.TestFramework" Version="2.2.7" />

https://www.linkedin.com/in/zhiyong-fang-8066265/
# Seperate Test and TestLibrary

- TestLibrary
- UnitTestProject

0 comments on commit f820251

Please sign in to comment.