Trying to stabilize the CI build as the last build had only 20% coverage due to wrong detection

This commit is contained in:
2024-03-09 23:38:56 +01:00
parent 24f7cc74a7
commit 946614b86c
3 changed files with 14 additions and 3 deletions

View File

@@ -16,6 +16,7 @@ build-debug:
tags:
- docker
- lnx
- 64bit
rules:
- if: $CI_COMMIT_TAG == null
script:
@@ -32,7 +33,7 @@ build-debug:
paths:
- artifacts/*.nupkg
- artifacts/*.snupkg
expire_in: 3 days
expire_in: 1 days
test-debug:
stage: test
@@ -41,6 +42,7 @@ test-debug:
tags:
- docker
- lnx
- 64bit
rules:
- if: $CI_COMMIT_TAG == null
coverage: '/Total[^|]*\|[^|]*\|\s*([0-9.%]+)/'
@@ -56,6 +58,7 @@ deploy-debug:
tags:
- docker
- lnx
- 64bit
rules:
- if: $CI_COMMIT_TAG == null
script:
@@ -68,6 +71,7 @@ build-release:
tags:
- docker
- lnx
- amd64
rules:
- if: $CI_COMMIT_TAG != null
script:
@@ -93,6 +97,7 @@ test-release:
tags:
- docker
- lnx
- amd64
rules:
- if: $CI_COMMIT_TAG != null
coverage: '/Total[^|]*\|[^|]*\|\s*([0-9.%]+)/'
@@ -108,6 +113,7 @@ deploy-release:
tags:
- docker
- lnx
- 64bit
rules:
- if: $CI_COMMIT_TAG != null
script:

View File

@@ -13,7 +13,7 @@ If you want to speak a custom type of protocol with the clients, you can impleme
**ModbusBaseClient**
This abstract base client contains all the basic methods and handlings required to communicate via Modbus Protocol.
The packages `AMWD.Protocols.Modbus.Serial` _(in progress)_ and `AMWD.Protocols.Modbus.Tcp` have specific derived implementations to match the communication types.
The packages `AMWD.Protocols.Modbus.Serial` _(in progress)_ and `AMWD.Protocols.Modbus.Tcp` _(in progress)_ have specific derived implementations to match the communication types.
### Enums
@@ -40,6 +40,11 @@ The different types handled by the Modbus Protocol.
- Holding Register
- Input Register
In addition, you'll find the `DeviceIdentification` there.
It is used for a "special" function called "Read Device Identification" (0x2B / 43) not supported by all devices.
The `ModbusDevice` is used for the server implementations in the derived packages.
### Protocols

View File

@@ -161,7 +161,7 @@ namespace AMWD.Protocols.Modbus.Tests.Tcp.Utils
public async Task ShouldThrowApplicationExceptionHostnameNotResolvable()
{
// Arrange
_hostname = "device.internal";
_hostname = "123.321.123.321";
var connection = GetConnection();
// Act