Skip to content

Latest commit

 

History

History
47 lines (26 loc) · 1.54 KB

RUNNING_TESTS.md

File metadata and controls

47 lines (26 loc) · 1.54 KB

Overview

.NET client's test suite assumes there's a RabbitMQ node listening on localhost:5672 (the default settings). SSL tests require a broker listening on the default SSL port. Connection recovery tests assume rabbitmqctl at ../rabbitmq-server/scripts/rabbitmqctl can control the running node: this is the case when all repositories are cloned using the umbrella repository.

It is possible to use Visual Studio 2015 Community Edition, .NET 4.5 or later, and msbuild.exe in PATH, to build the client and run the test suite.

Building

On Windows run:

build.bat

On osx/linux run:

build.sh

This will complete the code AMQP spec generation and build all projects. After this open the solution in Visual Studio.

Running Tests

Tests can be run from Visual Studio using NUnit Test Adapter. Note that it may take some time for the adapter to discover tests in the assemblies.

Running the tests from the command line is also straightforward you don't need to build first to do this: use

On Windows run:

run-test.bat

On osx/linux run:

run-test.sh

Running individual tests and fixtures on Windows is trivial using the Visual Studio test runner. To run a specific tests fixture on osx/linux you can use nunit3 where expressions to select the tests to be run:

./fake.sh Test where="test =~ /SomeTest/"