meteorify
meteorify copied to clipboard
Introduce support for unit testing
As of now, unit testing is not possible because Mockito doesn't support testing of static methods.
Support for unit-testing should be introduced by removing static methods from the code, so that unit testing is possible using Mockito.
I think di might assist here. I'll do a couple of experiments
@sduduzog Thanks. If you've any updates on this, just let me know whenever it's suitable for you.
For now it's still research. I'm trying to see if I can find solutions that do not impose breaking changes to how the library is used. Also something that will be compatible with web+flutter too. I thought how would it be that exposed objects act as proxies, remain with static methods but have proxied ones injected. Thus allowing room to even tests the respective proxies tested with mocked objects? @ShivamArora
@sduduzog If you can achieve that, it would help us a lot as we don't have to introduce any breaking changes.