Is there a version of MassTransit.TestFramework that isn't coupled to NUnit?
I was to use test our proxy layer but can't get Moq (mocking IBus) to work 100% of the time ( getting an occassional enumeration modified exception on _connections ) so I went looking for your official testing libraries.
We're using XUnit.
Yeah, there isn't unfortunately. There may be a test framework free version at some point in the future, it just isn't there yet.
So this is almost done actually and should be in the next release. A set of test harnesses akin to what's available in the TestFramework, but without NUnit. Or any assembly - it's built into MT.
A whole chain of commits to make the harnesses available to any test framework: 1977f60e151efde4bb13c8ff13d0721b713efbf2
Do we have an idea of what version this will make it into the official binaries ?
They are already there, I just haven't written the documentation yet. There is an InMemoryTestHarness, and a few things around it for testing consumers, sagas, state machines, etc.
FOr instance, state machine test: https://github.com/MassTransit/MassTransit/blob/master/src/MassTransit.AutomatonymousIntegration.Tests/Testing_Specs.cs#L28
@phatboyg
From what I can see, the MassTransit.TestFramework package (also the prerelease) still depends on NUnit.
What is the status of this ?
Edit: nevermind, I see it's baked into MassTransit package 馃槾
Most helpful comment
So this is almost done actually and should be in the next release. A set of test harnesses akin to what's available in the TestFramework, but without NUnit. Or any assembly - it's built into MT.