Skip to content

Commit 7ae8283

Browse files
authored
Merge pull request #18 from stprograms/17-introduce-software-unit-tests
17 - introduce software unit tests
2 parents 9bbb35d + 06089b6 commit 7ae8283

26 files changed

+233
-37
lines changed

.github/workflows/build.yml

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

.github/workflows/dotnet.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: .NET Test and Build
2+
3+
on:
4+
push:
5+
workflow_dispatch:
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
container: mcr.microsoft.com/dotnet/sdk:8.0
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
17+
- name: Run tests
18+
run: dotnet test
19+
20+
build:
21+
needs: test
22+
runs-on: ubuntu-latest
23+
container: mcr.microsoft.com/dotnet/sdk:8.0
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v4
27+
with:
28+
fetch-depth: 0
29+
30+
- name: Build application
31+
run: dotnet build

.vscode/tasks.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"type": "process",
88
"args": [
99
"build",
10-
"${workspaceFolder}/RS485 Monitor.csproj",
10+
"${workspaceFolder}/SuperSoco485Monitor.sln",
1111
"/property:GenerateFullPaths=true",
1212
"/consoleloggerparameters:NoSummary"
1313
],
@@ -19,7 +19,7 @@
1919
"type": "process",
2020
"args": [
2121
"publish",
22-
"${workspaceFolder}/RS485 Monitor.csproj",
22+
"${workspaceFolder}/SuperSoco485Monitor.sln",
2323
"/property:GenerateFullPaths=true",
2424
"/consoleloggerparameters:NoSummary",
2525
"-c",
@@ -43,4 +43,4 @@
4343
"problemMatcher": "$msCompile"
4444
}
4545
]
46-
}
46+
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![.NET Workflow for test building](https://github.com/stprograms/SuperSoco485Monitor/actions/workflows/build.yml/badge.svg)](https://github.com/stprograms/SuperSoco485Monitor/actions/workflows/build.yml)
1+
[![.NET Unit Test](https://github.com/stprograms/SuperSoco485Monitor/actions/workflows/dotnet.yml/badge.svg)](https://github.com/stprograms/SuperSoco485Monitor/actions/workflows/dotnet.yml)
22

33
# SuperSoco485Monitor
44
C# Application to monitor the communication on the internal RS485 Bus on SuperSoco Motorcycles

RS485 Monitor.code-workspace

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
"Xmanu"
1818
]
1919
}
20-
}
20+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net6.0</TargetFramework>
5+
<TargetFramework>net8.0</TargetFramework>
66
<RootNamespace>RS485_Monitor</RootNamespace>
77
<ImplicitUsings>enable</ImplicitUsings>
88
<Nullable>enable</Nullable>

0 commit comments

Comments
 (0)