mirror of
https://github.com/OPCFoundation/UA-.NETStandard.git
synced 2026-10-23 02:00:00 +08:00
043a56c3f2
- Deprecate support for Nuget package support of .NET Framework 4.6.2 - Bump sample applications to 4.8 - update some copyright headers / supporting files (editorconfig etc.) - fix a few warnings - fix an issue with `SessionReconnectHandler`, in certain combination of reconnect period and exponential backoff the .NET sample app never reconnected.
18 lines
802 B
Bash
Executable File
18 lines
802 B
Bash
Executable File
#!/bin/bash
|
|
# Copyright (c) OPC Foundation. All rights reserved.
|
|
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
|
|
BUILDROOT=$(pwd)/..
|
|
cd $BUILDROOT
|
|
|
|
rm -r ./CodeCoverage
|
|
rm -r ./TestResults
|
|
dotnet test "UA Core Library.sln" -v n --configuration Release --framework net6.0 --collect:"XPlat Code Coverage" --settings ./Tests/coverlet.runsettings.xml --results-directory ./TestResults
|
|
|
|
# ensure latest report tool is installed
|
|
dotnet tool uninstall -g dotnet-reportgenerator-globaltool
|
|
dotnet tool install -g dotnet-reportgenerator-globaltool
|
|
reportgenerator -reports:./TestResults/**/coverage.cobertura.xml -targetdir:./CodeCoverage -reporttypes:"Badges;Html;HtmlSummary;Cobertura"
|
|
|
|
# Display result in browser (mac OS)
|
|
open ./CodeCoverage/index.html |