-
Notifications
You must be signed in to change notification settings - Fork 3
Wondering if may be used for mocking library #1
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
Comments
Hello!
|
Okay, I see... such approach then is limited to your own classes then, without the possibility to get metadata for classes that you linked as libraries, is it? |
Right now it's true. But it is not so difficult to make it possible. I'm going to add this feature. |
And then I need function parameter types, list of functions in a class. If that is possible I can go back to JS implementation and tell what is needed else. |
You already can get all class methods. Look at JsClassReflect interface in the readme. Or maybe you mean something else? |
And the method parameter types? |
I'll add this also |
Ok, if all that possible I think we can give it a try. I will recover JS branch. It will not happen very fast, one or two weeks. And then I'll come back with more detailed requirements on what is needed |
Yes, all these fields are from Java/Kotlin Reflection in JVM version. I see. Unmangling sounds like a hack... as all mocking library itself 😃 |
I need to figure it out, but I think yes |
Tried to run it as Gradle plugin and have following error:
|
I think I found the source of the problem. I will try to fix it |
I tried to build it on my own. See #2 The current problem(after resolving the issue with ANTLR4 clash and shadowing it) is I believe the syntax level of Kotlin parser. It is not able to understand the
|
Then I upgraded to newest Kotlin grammar and was finally able to generate some reflection metadata(as Kotlin code) 🎉 |
Last time I was trying to port MockK to Kotlin JS, the problem was in Kotlin JS reflection. Just've trapped on a post in discuss about your plugin and thinking if I can give a second try to this direction.
Just a few questions (I didn't want to explore it myself, because hope will have correct and up-to-date answers through communication rather than code):
The text was updated successfully, but these errors were encountered: