-
Notifications
You must be signed in to change notification settings - Fork 122
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
Junit-quickcheck fails for android runtime #322
Comments
@vaioco Thanks for reporting this. I will investigate. |
Hi, have you reached a conclusion on this question |
Hello? Android doesn't support getAnnotatedType . Is there any way |
My apologies -- I've found it difficult to carve out time to devote to junit-quickcheck lately. I haven't come up with a way to address the issues with running junit-quickcheck on the Android runtime. It might be possible to offer slightly degraded service on Android if we can't come up with a suitable replacement for Parameter.getAnnotatedType(). I'll see if I can investigate some more this weekend. |
I tried to make some modifications to AnnotatedType @from(LinkedListGenerator.class) List<@from(IntegerGenerator.class) Integer> i; Do you have any good suggestions,thank you |
@vaioco @zxd112355 My apologies for the delayed response. junit-quickcheck relies heavily on the AnnotatedTypes of parameters to property methods, fields, etc. Though it's a shame that the Android runtime does not offer Parameter.getAnnotatedType() and the like, I never specifically set out to have junit-quickcheck run on Android. @jlink -- does jqwik face this issue? If not, did you do anything special to avoid or overcome it? |
@pholser Anecdotal evidence suggests that jqwik runs on/with Android but I haven’t checked myself, and I didn’t do anything on purpose to make that work. |
@pholser I've done a bit more research and experimentation. The main things I learned:
Hope that helps to judge if going in that direction is feasible for Junit-quickcheck. For jqwik I decided to let it rest - at least for the time being. |
@jlink Thanks for investigating. junit-quickcheck is pretty heavily invested in I'll make some time to work on this in the coming days. |
Hi *,
trying to use quickcheck in android app as the following:
but the following error appears on execution:
By checking the android Parameter.java source code [1] I noticed the code was changed and the above virtual method was removed,
I was wondering whether it would be possible to make quickcheck compatible with the Android runtime or if the above API removed is a blocking modification.
thanks
[1] https://developer.android.com/reference/java/lang/reflect/Parameter
The text was updated successfully, but these errors were encountered: