akka.net
akka.net copied to clipboard
Akka.TestKit: take dependency on FluentAssertions?
We should probably just take a dependency on FluentAssertions in the TestKit. I don't know why we haven't yet.
I'll make a bigger issue for this and we'll revisit that prior to releasing v1.4.30.
Originally posted by @Aaronontheweb in https://github.com/akkadotnet/akka.net/pull/5430#discussion_r769172219
Any reason why we shouldn't take a reference on FluentAssertions inside the Akka.TestKit?
cc @akkadotnet/core @akkadotnet/contributors
- We are using it heavily in our own tests. And its exposed through the samples as well.
- Reason we haven't before is because the TestKit in itself doesn't need it.
Saw the referring PR: feels a bit like overkill to pull that in just for 1 line of code. But you might put more value on my previous comments. ¯_(ツ)_/¯
Saw the referring PR: feels a bit like overkill to pull that in just for 1 line of code. But you might put more value on my previous comments. ¯(ツ)/¯
I removed it in https://github.com/akkadotnet/akka.net/pull/5433
If we need it in TestKit, I do not see any reason why not to add this reference.
If we need it in TestKit, I do not see any reason why not to add this reference.
So far we haven't needed it, but we could probably replace a lot of "homegrown" stuff with it. I'm a bit conflicted about that since I like to keep external dependencies to a minimum.... But I also like to keep our own code to a minimum too...
Ah, that makes sense. Then to me it sounds like we are thinking of making TestKit refactoring to make it cleaner/more readable/easier to understand by other devs. If that's the case, there is a value of adding FluentAssertions reference. Especially if there are some volunteers to perform this refactoring :)
This is already done in v1.5.