-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Functional test with AndroidTestRule #84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,6 +76,13 @@ dependencies { | |
androidTestCompile presentationTestDependencies.mockito | ||
androidTestCompile presentationTestDependencies.dexmaker | ||
androidTestCompile presentationTestDependencies.dexmakerMockito | ||
androidTestCompile presentationTestDependencies.espresso | ||
androidTestCompile presentationTestDependencies.testingSupportLib | ||
androidTestCompile (presentationTestDependencies.espresso) { | ||
exclude group: 'com.android.support', module: 'support-annotations' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do we need to exclude annotations here? Is this a transitive dependency? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is a conflict with dependencies, because of different versions of android support annotation. If I remove this line a I get this error :
|
||
} | ||
androidTestCompile (presentationTestDependencies.testRules) { | ||
exclude group: 'com.android.support', module: 'support-annotations' | ||
} | ||
androidTestCompile (presentationTestDependencies.testRunner) { | ||
exclude group: 'com.android.support', module: 'support-annotations' | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MehdiChouag this must be
com.android.support.test:runner
not rules.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@spirosoik Just for the line 51 or for both 50 and 51 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MehdiChouag for 51. Now you have twice the same thing but you forgot the runner.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exactly, thanks I'll modify it.