- Fix bug in recently added strings-extension method with format args.
- Add string-extension methods for Activity and Fragment for getting strings with format arguments.
- New! We've simplified Activity and Fragment testing a great deal by introducing two new methods:
testActivity()
andtestFragment()
. - DarjeelingActivityTest and DarjeelingFragmentTest has been deprecated in favor of this new testing approach.
- Bugfixes
- Now based on Espresso 3.3.0
- Add better support for coroutines with
eventually
methods.
- All eventually methods will now provide a better error message, including the assertion error, when they time out.
- Add new methods for obtaining CardView, ProgressBar and various layout view components.
view
-method is now generic and returns any supported view.
- Fix issue with
DarjeelingUtils.eventuallyActivityLaunched
not working. Introduced new wrapper methodrecordActivityLaunches
which should be used as method body for tests checking for launched activities. SeeEventuallyActivityLaunchedTest
in app module for example.
- DarjeelingFragmentTest: Added new option to autolaunch fragments for
each test. This is the default behaviour. You can set this to
false
to manually launch fragments using thelaunchFragment()
method in each test. Useful when you need to modify mocks and dependencies before the fragment launches. - DarjeelingFragmentTest: Add new method
onFragment
which lets you pass in an action to perform on the launched fragment.
- First offical release of Darjeeling
- Contains helper classes for performing Activity and Fragment testing.
See
DarjeelingFragmentTest
andDarjeelingActivityTest
. - Helper methods for performing evaluations with timeout. Useful for
evaluating application state after asynchronous data loading. See
DarjeelingUtils
.