fa-fifi / keycloak_wrapper

Keycloak Single Sign-On (SSO) authentication package for Flutter framework.
https://pub.dev/packages/keycloak_wrapper
BSD 3-Clause "New" or "Revised" License
12 stars 11 forks source link

Draft: [9] Create unit tests #34

Closed mariopepe closed 4 months ago

mariopepe commented 5 months ago

Fixes #9

Hi, I started implementing unit tests, I create a sample one.

Of course I had to change the initialization strategy for the KeycloakWrapper class otherwise I could not use mocks.

So if you are okay with the changes I did, I will continue with the tests.

Let me know if you think anything can be changed and improved.

Best 😄

fa-fifi commented 4 months ago

I'll close this PR since the package has gone thru many changes and unit tests are not required anymore since massive refactoring is needed for creating mocks. If you want to help, you can refer to the open issues.

BTW, thank you for your contribution. Really appreciated.