You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: RUNNING_TESTS.md
+14-6Lines changed: 14 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ build.sh
30
30
This will complete the code AMQP 0-9-1 protocol code generation and build all projects. After this open the solution in Visual Studio.
31
31
32
32
33
-
## Running Tests
33
+
## Test Environment Requirements
34
34
35
35
Tests can be run from Visual Studio using the NUnit Test Adapter. Note that it
36
36
may take some time for the adapter to discover tests in the assemblies.
@@ -40,9 +40,17 @@ defaults, and the tests will need to be able to run commands against the
40
40
[`rabbitmqctl`](https://www.rabbitmq.com/rabbitmqctl.8.html) tool for that node.
41
41
Two options to accomplish this are covered below.
42
42
43
-
### Using RabbitMQ Umbrella Repository
43
+
### Option One: Using a RabbitMQ Release
44
44
45
-
1. Team RabbitMQ uses [rabbitmq-public-umbrella](https://github.com/rabbitmq/rabbitmq-public-umbrella), which sets up a local RabbitMQ server [built from source](https://www.rabbitmq.com/build-server.html):
45
+
It is possible to install and run a node using any [binary build](https://www.rabbitmq.com/download.html) suitable
46
+
for the platform. Its [CLI tools]() then must be added to `PATH` so that `rabbitmqctl` (`rabbitmqctl.bat` on Windows)
47
+
can be invoked directly without using an absolute file path.
48
+
49
+
50
+
### Option Two: Using RabbitMQ Umbrella Repository
51
+
52
+
Team RabbitMQ uses [rabbitmq-public-umbrella](https://github.com/rabbitmq/rabbitmq-public-umbrella),
53
+
which makes it easy to run a RabbitMQ node [built from source](https://www.rabbitmq.com/build-server.html):
@@ -60,15 +68,15 @@ It is possible to override the location using `RABBITMQ_RABBITMQCTL_PATH`:
60
68
RABBITMQ_RABBITMQCTL_PATH=/path/to/rabbitmqctl dotnet test projects/Unit
61
69
```
62
70
63
-
### Using a Docker Container
71
+
### Option Three: Using a Docker Container
64
72
65
73
It is also possible to run a RabbitMQ node in a [Docker](https://www.docker.com/) container. Set the environment variable `RABBITMQ_RABBITMQCTL_PATH` to `DOCKER:<container_name>` (for example `DOCKER:rabbitmq01`). This tells the unit tests to run the `rabbitmqctl` commands through Docker, in the format `docker exec rabbitmq01 rabbitmqctl <args>`:
0 commit comments