akka.net icon indicating copy to clipboard operation
akka.net copied to clipboard

Akka.TestKit: take dependency on FluentAssertions?

Open Aaronontheweb opened this issue 3 years ago • 6 comments
trafficstars

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

Aaronontheweb avatar Dec 15 '21 01:12 Aaronontheweb

Any reason why we shouldn't take a reference on FluentAssertions inside the Akka.TestKit?

cc @akkadotnet/core @akkadotnet/contributors

Aaronontheweb avatar Dec 15 '21 01:12 Aaronontheweb

  • 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. ¯_(ツ)_/¯

Danthar avatar Dec 15 '21 17:12 Danthar

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

Aaronontheweb avatar Dec 15 '21 17:12 Aaronontheweb

If we need it in TestKit, I do not see any reason why not to add this reference.

IgorFedchenko avatar Dec 15 '21 19:12 IgorFedchenko

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...

Aaronontheweb avatar Dec 15 '21 19:12 Aaronontheweb

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 :)

IgorFedchenko avatar Dec 15 '21 20:12 IgorFedchenko

This is already done in v1.5.

Aaronontheweb avatar Feb 21 '23 15:02 Aaronontheweb