Addressables Mock in PlayMode tests

Hello!

I have a strange issue. I want to test a class in PlayMode. This class gets some assets via Addressables, so async. At some point when all handles are done (handle.isDone == true) the class dispatches some action. In my test I wait for this dispatched action. And that worked! But further, this class additionally loads more asstes via AssetReferences and now the tests get stuck, because these handles never become isDone == true. On Runtime everything works as expected.
Did someon face a similiar issue or has an idea?

Or is there a way to mock the addressables?

1 Like

Let me bounce this off of the team for some guidance. Which version of Addressables are you using?

Using Version 1.16.10 with Unity 2020.1.8.f1

1 Like

Thanks! Forwarded to the team. They are going to do some investigating on this one. I’ll update you as soon as I hear more.

1 Like

Any news on this? I have real trouble testing my code, which use addressables.