pwittchen / ReactiveNetwork

Android library listening network connection state and Internet connectivity with RxJava Observables
http://pwittchen.github.io/ReactiveNetwork/docs/RxJava2.x/
Apache License 2.0
2.53k stars 276 forks source link

fixing unit (robolectric) tests on Linux and Mac #468

Closed pwittchen closed 1 year ago

pwittchen commented 1 year ago

solves #467

After this update, tests works fine on Arch Linux with Android Studio Dolphin (the latest one). I also works fine from CLI with gradle wrapper and openjdk version "1.8.0_265".

I had problems with executing them on macOS (Macbook Air M1) with the older version Android Studio. I need to upgrade Android Studio on Mac and test it again with this change.

pwittchen commented 1 year ago

I managed to execute tests on Mac via commit 839000e, but tests which rely on Android API are still not passing and throwing errors.

pwittchen commented 1 year ago

After second commit, I'm on the same page on Linux and Mac. 17 tests depending on Android API via Robolectric are failing.

pwittchen commented 1 year ago

Now, tests are passing on Linux and Mac