strikt
strikt copied to clipboard
Add extensions for Android
Adding extensions for Android will allow some often-used assertions to be shorter and more idiomatic. For example, we could have:
expect(view).isGone()
instead of
expect(view.getVisibility()).isEqualTo(View.GONE)
A good starting point for these might be assertj-android
: https://github.com/square/assertj-android
@robfletcher @rohandhruva do you still want to do this? I can create an android module. After it, we can break this issue in some others. This way, more people can contribute.
@faogustavo , thanks for pinging this issue :)
I can create an android module. After it, we can break this issue in some others. This way, more people can contribute.
Sounds like a plan! I'm happy to help out with some of the sub-tasks!
After some tests, I was not able to create the android library structure inside the project. I'll create a separated project to do this. If in the future you migrate the project to an organization, I can arrange to transfer the android project too.
I created the project and added some issues to start (https://github.com/faogustavo/strikt-android). I'll try to add more assertions and map new issues in the next days. I hope it helps with this issue.
Sounds good. I know nothing about Android dev, but it would be a very logical thing to add to Strikt's capabilities.