zhangmengvv / android-test-kit

Automatically exported from code.google.com/p/android-test-kit
0 stars 0 forks source link

Update dependencies to jUnit 4.12 or latest #115

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. include espresso package via gradle dependecy line
2. execute :dependencies task on project

What is the expected output? What do you see instead?
- espresso should use latest jUnit 4.12 instead of jUnit:junit-dep

What version of the product are you using? On what operating system?
- v2.0
- windows 8.1 x64
- android studio latest

Please provide any additional information below.
rigth now I use workaround:

configurations.all {
    exclude group: 'junit', module: 'junit-dep'
}

dependencies {
  ...

  /* Hamcrest (v1.4) */
  androidTestCompile 'org.hamcrest:hamcrest-core:+',
    'org.hamcrest:hamcrest-library:+',
    'org.hamcrest:hamcrest-integration:+'

  /* jUnit (v4.12) */
  androidTestCompile('junit:junit:4.12') { exclude group: 'org.hamcrest' }

  androidTestCompile('com.android.support.test:testing-support-lib:+') {
    exclude group: 'junit'
    exclude group: 'org.hamcrest'
  }

  ...
}

Original issue reported on code.google.com by kucheren...@gmail.com on 5 Jan 2015 at 10:12

GoogleCodeExporter commented 9 years ago
I am facing a similar problem - but espresso is not working with espresso 1.3 ( 
I do not see the 1.4 you mention here in 
http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.hamcrest%22%20AND%20a%3A%
22hamcrest-core%22 )
http://stackoverflow.com/questions/28563768/espresso-with-hamcrest-1-3

Original comment by mr.l...@googlemail.com on 17 Feb 2015 at 3:45