Skip to content

Commit fa9f103

Browse files
committed
Update README with test instructions
Small `build.ps1` changes.
1 parent 6421cdb commit fa9f103

File tree

2 files changed

+19
-10
lines changed

2 files changed

+19
-10
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# RabbitMQ AMQP 1.0 DotNet Client
1+
# RabbitMQ AMQP 1.0 .NET Client
22

3-
4-
This library is in early stages of development.
5-
It is meant to be used with RabbitMQ 4.0.
3+
This library is in early stages of development. It is meant to be used with RabbitMQ 4.0.
64

75
## How to Run
8-
- start the broker with `ci/start-broker.sh`
9-
- run the tests with ` dotnet test ./Build.csproj --logger "console;verbosity=detailed" /p:AltCover=true`
6+
7+
- Start the broker with `./.ci/ubuntu/gha-setup.sh`. Note that this has been tested on Ubuntu 22 with docker.
8+
- Run the tests with ` dotnet test ./Build.csproj --logger "console;verbosity=detailed" /p:AltCover=true`
9+
- Stop RabbitMQ with `./.ci/ubuntu/gha-setup.sh stop`
1010

1111
## Getting Started
12-
You can find an example in: `docs/Examples/GettingStarted`
1312

13+
You can find an example in: `docs/Examples/GettingStarted`
1414

1515
## TODO
1616

build.ps1

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,28 @@ param(
33
[switch]$RunTests
44
)
55

6+
$ErrorActionPreference = 'Stop'
7+
Set-StrictMode -Version Latest
8+
$PSNativeCommandUseErrorActionPreference = $true
9+
610
Write-Host "Run Parameters:" -ForegroundColor Cyan
711
Write-Host "`tPSScriptRoot: $PSScriptRoot"
812
Write-Host "`tRunTests: $RunTests"
913
Write-Host "`tdotnet --version: $(dotnet --version)"
1014

1115
Write-Host "Building all projects (Build.csproj traversal)..." -ForegroundColor "Magenta"
12-
dotnet build "$PSScriptRoot\Build.csproj"
16+
17+
New-Variable -Name build_csproj_file -Option Constant `
18+
-Value (Join-Path -Path $PSScriptRoot -ChildPath 'Build.csproj')
19+
20+
dotnet build $build_csproj_file
1321
Write-Host "Done building." -ForegroundColor "Green"
1422

1523
if ($RunTests) {
1624
Write-Host "Running tests: Build.csproj traversal (all frameworks)" -ForegroundColor "Magenta"
17-
dotnet test "$PSScriptRoot\Build.csproj" --no-build --logger "console;verbosity=detailed"
18-
if ($LastExitCode -ne 0) {
25+
dotnet test $build_csproj_file --no-build --logger 'console;verbosity=detailed' '/p:AltCover=true'
26+
if ($LastExitCode -ne 0)
27+
{
1928
Write-Host "Error with tests, aborting build." -Foreground "Red"
2029
Exit 1
2130
}

0 commit comments

Comments
 (0)