square / spoon

Distributing instrumentation tests to all your Androids.
https://square.github.io/spoon/
Apache License 2.0
2.7k stars 476 forks source link

signature not matching #103

Closed wyhuster closed 11 years ago

wyhuster commented 11 years ago

when I run mvn clean install -Psign spoon:run , it fails to show signature not match , what's the problem? my pom is following: cl4en e bcc8 l 19 iisr

JakeWharton commented 11 years ago

I don't understand what you mean by "it fails to show signature not match".

wyhuster commented 11 years ago

thanks for reply.my app was signed with my key, but my test apk seems not signed with spoon runner. ![Uploading W50Y_~HC)[PDOO]MX}_MB0T.jpg . . .]()

wyhuster commented 11 years ago

sorry,the screenshot is following: w50y_ hc pdoo mx _mb0t

JakeWharton commented 11 years ago

Whatever configuration you used to sign your main application needs to be used on the test application. Spoon isn't responsible for creating and signing the APKs. Is it possible that that the tests are running before the APK is signed?

JakeWharton commented 11 years ago

Closing since this isn't a Spoon issue. Both your main application and your test application need to be signed with the same key. This is a requirement for all instrumentation tests whether run with Spoon or not.