MassTransit.TestFramework - NUnit coupled

Created on 18 Dec 2016  路  6Comments  路  Source: MassTransit/MassTransit

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.

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.

All 6 comments

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 馃槾

Was this page helpful?
0 / 5 - 0 ratings

Related issues

akaFalsh picture akaFalsh  路  3Comments

gsaadeh picture gsaadeh  路  5Comments

fshchudlo picture fshchudlo  路  4Comments

danielman111 picture danielman111  路  4Comments

ghd258 picture ghd258  路  6Comments