Skip to content

Akka.MultiNode.TestAdapter v1.5.0-beta1

Compare
Choose a tag to compare
@Aaronontheweb Aaronontheweb released this 21 Feb 16:15
0d4f7e6

1.5.0-beta1 February 21 2023

1.1.1 April 21 2022

1.1.0 January 6 2022

Version 1.1.0 release.

1.1.0-beta2 December 23 2021

In this release we added MultiNodeTestFramework to simplify non-parallel test setup. This test
framework is a simple override of the built-in XunitTestFramework that disables/ignores the
Xunit CollectionBehaviorAttribute, put all test classes from a single assembly into a single test
collection, and disables the test collection parallelization.

To use this test framework, you will need to add an assembly level attribute that tells Xunit to
use this custom test framework instead:

[assembly: TestFramework("Akka.MultiNode.TestAdapter.MultiNodeTestFramework", "Akka.MultiNode.TestAdapter")]

Note that you can also use this assembly level attribute to achieve more or less the same effect:

[assembly: CollectionBehavior(DisableTestParallelization = true)]

1.1.0-beta1 October 20 2021

In this release we removed VSTest Adapter and moved to a pure Xunit implementation. This brings about a few changes that needs to be observed:

  • Moved .runsettings configuration feature to xunit.multinode.runner.json

    .runsettings content are not passed downstream by dotnet test to the actual test runner, so this feature is moved to Xunit-like configuration through a .json file. You can declare your setting file name as either {assembly_name}.xunit.multinode.runner.json or xunit.multinode.runner.json. Supported settings are:

    • outputDirectory: the output directory where all the runner logs will be stored. Note that this is different than the dotnet test --result-directory settings which dictates where the VSTest reporter will export their outputs.
      Default: TestResults in the folder where the tested assembly is located.
    • failedSpecsDirectory: an output directory inside the outputDirectory where all aggregated failed logs will be stored.
      Default: FAILED_SPECS_LOGS
    • listenAddress: the host name or IP of the machine that is running the test. Will be bound to the TCP logging service.
      Default: 127.0.0.1 (localhost)
    • listenPort: the port where the TCP logging service will be listening to. a random free port will be used if set to 0.
      Default: 0
    • appendLogOutput: if set, all logs are appended to the old logs from previous runs.
      Default: true
  • Parallelized test support (BETA)

    Tests can be run in parallel now, with caveats. Parallel test is not recommended if any of your tests are very timing dependent;
    it is still recommended that you do not run your tests in parallel. Note that Xunit turns this feature on by default, so if your tests are failing, make sure that this feature is properly turned off. Please read the xunit documentation on how to set this up.

    Note that the maxParallelThreads in Xunit will not be honored by this test adapter because MultiNode tests will spawn a process for every cluster node being used inside the test, inflating the number of threads being used inside a test.

1.0.0 October 20 2019

1.0.0-beta2 October 05 2019

1.0.0-beta1 October 05 2019

First beta release

0.1.13 October 05 2019

Initial commit

Changes:

This list of changes was auto generated.