-
-
Notifications
You must be signed in to change notification settings - Fork 357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: test(KMP): use mockative instead of mockito #5706
base: master
Are you sure you want to change the base?
Conversation
Preparation for the move to KMP.
This comment was marked as resolved.
This comment was marked as resolved.
Also, I read somewhere that (at least) JavaScript does not support the |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
(There are conflicts with master and the PR is marked as draft, that's why I didn't look at it in detail yet. In case you need feedback about something, let me know.) |
I've seen this error at some point, I think when writing a test for a Mockative bug. So you're correct that we'll have to rename the methods when switching to the KMP project structure. |
Yes, that's why this PR is still a draft. I don't want to put in the work if Mockative doesn't fix / implement everything that is required for the tests here. Progress has slowed down there so I'm waiting, too. |
This comment was marked as resolved.
This comment was marked as resolved.
Mockative and that other one not being compatible with K2, it sounds to me that Mokkery would be the only remaining option (for us), if it has the features we need. |
What a coincidence! I just joined the OpenStreetMap site last week as I'm looking for non-corporate alternatives to Google maps! I just saw the bad news about Mockkative 😔 - I hope I can support this nifty effort! |
Recently, a lot of tests are failing for me (on master), somethig something with mocks and mockito, even though I didn't even touch the mockito dependency version. So maybe with mockito this is already the same problem as with mockative, using K2 compiler. Do you (guys) also have this problem on master or is it just an issue with my setup? |
The unit tests are passing in the GitHub Actions run on |
hm, okay |
Mockative V3.0.0 with support for Kotlin 2 has been released recently. There is a migration guide to V3. |
Cool! I hope it still makes sense for you to continue this PR despite the by now many conflicts and the fact that you need to migrate from v2 to v3. (Say, do you know Clonk?) |
Preparation for the move to KMP.
~150 tests are still failing. Some are blocked by bugs / missing features in Mockative, but maybe some or all of the failing tests can be changed to work around the issue or to just don't mocks.