Closed GoogleCodeExporter closed 9 years ago
I have applied the WithSpinnerTextPatch patch my espresso lib but when I try to
compile the source I get the following error:
[INFO] TestKit ............................................ SUCCESS [ 0.002 s]
[INFO] Google Instrumentation TestRunner .................. SUCCESS [ 25.849 s]
[INFO] Google Instrumentation TestRunner-Runtime .......... SUCCESS [ 0.172 s]
[INFO] Espresso Parent Project ............................ SUCCESS [ 0.001 s]
[INFO] Espresso Testing Framework ......................... FAILURE [ 2.754 s]
[INFO] Test App For UI Testing ............................ SKIPPED
[INFO] Tests For the Espresso Test Framework .............. SKIPPED
[INFO] Espresso Contrib Library ........................... SKIPPED
[INFO] Tests for the Espresso Contrib Library ............. SKIPPED
[INFO] Tests For the Test App ............................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 31.403 s
[INFO] Finished at: 2014-07-18T07:20:17-07:00
[INFO] Final Memory: 19M/241M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.
1:compile (default-compile) on project espresso: Compilation failure: Compilatio
n failure:
[ERROR] /C:/Users/hales/android-test-kit/espresso/lib/src/main/java/com/google/a
ndroid/apps/common/testing/ui/espresso/matcher/ViewMatchers.java:[802,49] cannot
find symbol
[ERROR] symbol: class Spinner
[ERROR] location: class com.google.android.apps.common.testing.ui.espresso.match
er.ViewMatchers
I get that it cant find the spinner class. do I need to add a dependency to the
pom.xml file to get it to build with maven? Thanks in advance...
Original comment by scottrh...@gmail.com
on 18 Jul 2014 at 2:33
Sorry about that, embarrassingly that was apparently an early patch I made
instead of the correct one. I've attached the correct patch here, though maybe
someone can help me figure this part out. I've got the compile working, but
every time I run verify, I run into problems at the Tests for espresso test
framework part, due to the Hamcrest dependencies issue (noted in several other
issues on this site). I've tried various solutions from changing to
hamcrest-all to using excludes in different areas to try to resolve all it, all
with either no luck or creating more errors.
Original comment by p.pr...@blueesoteric.com
on 20 Jul 2014 at 12:46
Attachments:
Thanks for your contribution. Sorry, running tests in this build is a mess
(which should be resolved in the upcoming 1.2 release).
Original comment by vale...@google.com
on 19 Nov 2014 at 10:02
Original comment by vale...@google.com
on 19 Nov 2014 at 10:02
Fixed in Espresso 2.0
Original comment by vale...@google.com
on 20 Dec 2014 at 4:33
Original issue reported on code.google.com by
p.pr...@blueesoteric.com
on 2 Jul 2014 at 8:59