Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Executing all tests from CLI undeterministically fails after upgrade to csproj #212

Closed
pardahlman opened this issue Apr 5, 2017 · 1 comment
Labels

Comments

@pardahlman
Copy link
Owner

RawRabbit uses the .NET CLI to execute it's tests. Since the integration tests uses the same message broker and also the same types of messages, the tests in the suite needs to be executed in sequence in order to secure that the tests doesn't interfere with each other.

Previously, this has been successfully done by providing the parallel flag to the command

 dotnet test -parallel none

However, this option is no longer available. After talking to the xUnit team, they recommended using xunit.runner.json and set parallelizeTestCollections to false.

This helps with running the tests in parallel, but the test suite still fails. Looking at the consumers, channels and connection in the management plugin, I can confirm that there more of them than I expect.

The problem does not occur if I run the test one at a time.

@pardahlman pardahlman added the 2.0 label Apr 5, 2017
@pardahlman
Copy link
Owner Author

Not sure what I changed, but the tests runs as expected again 🤷‍♂️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant