|
1 | | -# Akka.MultiNodeTestRunner |
| 1 | +# Akka.MultiNode.TestAdapter |
| 2 | + |
| 3 | +Visual Studio 2019 Test Explorer and .NET CLI Test runner for the Akka.NET MultiNode tests |
| 4 | + |
| 5 | +## Documentation |
| 6 | +`Akka.MultiNode.TestAdapter` is a standalone .NET CLI and VSTest adapter for Akka.NET multi node testkit; |
| 7 | +It allows you to run multinode tests directly inside Visual Studio Text Explorer window and run them |
| 8 | +using the `dotnet test` .NET CLI command. |
| 9 | + |
| 10 | +To use the VSTest test adapter in your multinode spec projects, You will need to add these nuget packages: |
| 11 | + - [Akka.MultiNode.TestAdapter](https://www.nuget.org/packages/Akka.MultiNode.TestAdapter) |
| 12 | + - [Microsoft.NET.Test.Sdk](https://www.nuget.org/packages/Microsoft.NET.Test.Sdk/) |
| 13 | + |
| 14 | +Documentation regarding the multinode specs themselves can be read in the Akka.NET documentation pages: |
| 15 | + - [Using the MultiNode TestKit](https://getakka.net/articles/networking/multi-node-test-kit.html) |
| 16 | + - [Multi-Node Testing Distributed Akka.NET Applications](https://getakka.net/articles/testing/multi-node-testing.html) |
| 17 | + |
| 18 | +### VSTest .runsettings |
| 19 | +This is the .runsettings XML sub-section `Akka.MultiNode.TestAdapter` can use: |
| 20 | +```xml |
| 21 | +<?xml version="1.0" encoding="utf-8"?> |
| 22 | +<RunSettings> |
| 23 | + <MultiNodeTestRunnerOptions> |
| 24 | + <ListenAddress>127.0.0.1</ListenAddress> |
| 25 | + <ListenPort>0</ListenPort> |
| 26 | + <ClearOutputDirectory>false</ClearOutputDirectory> |
| 27 | + <UseTeamCityFormatting>false</UseTeamCityFormatting> |
| 28 | + </MultiNodeTestRunnerOptions> |
| 29 | +</RunSettings> |
| 30 | +``` |
2 | 31 |
|
3 | | -Update this readme file with your details. |
| 32 | +- **ListenAddress**: Determines the address that this multi-node test runner will use to listen for log messages from individual spec. |
| 33 | +- **ListenPort**: Determines the port number that this multi-node test runner will use to listen for log messages from individual spec. |
| 34 | +- **ClearOutputDirectory**: Clear the output directory before running the test session. If set to false, all test logs are appended to the out file. |
| 35 | +- **UseTeamCityFormatting**: Use TeamCity formatting on the log outputs. |
4 | 36 |
|
5 | 37 | ## Building this solution |
6 | 38 | To run the build script associated with this solution, execute the following: |
|
0 commit comments