strikt icon indicating copy to clipboard operation
strikt copied to clipboard

Add extensions for Android

Open rohandhruva opened this issue 6 years ago • 5 comments

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

rohandhruva avatar May 29 '18 21:05 rohandhruva

@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 avatar Dec 05 '19 13:12 faogustavo

@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!

rohandhruva avatar Dec 07 '19 10:12 rohandhruva

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.

faogustavo avatar Dec 08 '19 00:12 faogustavo

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.

faogustavo avatar Dec 09 '19 01:12 faogustavo

Sounds good. I know nothing about Android dev, but it would be a very logical thing to add to Strikt's capabilities.

robfletcher avatar Dec 10 '19 20:12 robfletcher