0

I have seen that there exists a set of testing components in the material-components-android library: https://github.com/material-components/material-components-android/tree/master/tests/javatests/android/support/design/testutils

I would like to use TestUtilsActions.java to enrich the available set of espresso testing actions like click(), typeText(aString). It seems like I would be able to have setEnabled(enabled), setClickable(clickable), etc.

I have imported the library in my build.gradle file:

compile 'com.android.support:design:26.0.0-alpha1'
androidTestCompile 'com.android.support:design:26.0.0-alpha1'

But still I'm not able to reach that testutils package: enter image description here

Can anyone tell me what should I do?

Kartik Shandilya
  • 3,796
  • 5
  • 24
  • 42
Jorge Gil
  • 4,265
  • 5
  • 38
  • 57
  • https://github.com/material-components/material-components-android in this project they have used testutills – Rajesh N Oct 02 '17 at 03:33
  • @RajeshNasit I know, please see the link I have included in the question. – Jorge Gil Oct 02 '17 at 04:08
  • oh sorry but this might help https://developer.android.com/training/testing/junit-runner.html and https://developer.android.com/training/testing/samples.html – Rajesh N Oct 02 '17 at 04:16

0 Answers0