Я колотил голову против этого в течение многих дней теперь, таким образом, я думал, что ее время спросило.
У меня есть проект андроида и тестовый проект андроида. Я могу запустить свои тесты в затмении, и все это работает отлично.
Таким образом, теперь я иду дальше, чтобы использовать эти тесты через знатока, таким образом, я могу использовать их для CI.
Так или иначе длинная история, короткая, я не могу заставить знатока собирать/управлять их. Я посмотрел на все примеры, которым предоставляют плагин знатока андроида напрасно.
Главный АНГЛИЧАНИН.
com.xxx.x_android_finder
x_Android_Finder
1.0.2
apk
xxxx
<!--
junit
junit
4.8.1
test
-->
com.google.android
android
4.0.1.2
provided
com.google.android.maps
maps
15_r2
provided
com.actionbarsherlock
library
4.1.0
apklib
com.google.android
support-v4
com.actionbarsherlock
plugin-maps
4.1.0
net.hockeyapp.android
HockeySDK
2.0.2
apklib
com.codeslap
android-facebook
1.6
compile
org.twitter4j
twitter4j-core
[3.0,)
jakewharton
http://r.jakewharton.com/maven/release/
codeslap
http://casidiablo.github.com/codeslap-maven/repository/
com.jayway.maven.plugins.android.generation2
android-maven-plugin
3.2.0
true
<!-- replace resources with target specific -->
${customerPackage}
${customerResources}
false
true
<inputApk>${project.build.directory}/${project.build.finalName}.apk
${project.build.directory}/x_Android_Finder.apk
true
<!-- platform or api level (api level 4 = platform 1.6)-->
17
${project.basedir}/${customerAssets}
${project.basedir}/res
manifestUpdate
process-resources
manifest-update
alignApk
package
zipalign
org.apache.maven.plugins
maven-jarsigner-plugin
1.2
signing
sign
package
true
target/*.apk
../certificates/xxx.keystore
xxxx
xxxx
csl
<!--
org.apache.maven.plugins
maven-javadoc-plugin
true
-->
Испытательный англичанин
x_Android_Finder_Test
apk
1.0.0
xxxxx
com.google.android
android-test
1.5_r3
com.google.android
android
4.0.1.2
provided
com.google.android.maps
maps
15_r2
provided
com.actionbarsherlock
library
4.1.0
apklib
com.google.android
support-v4
com.actionbarsherlock
plugin-maps
4.1.0
com.connectionservices.csl_android_finder
Csl_Android_Finder
apk
1.0.2
com.connectionservices.csl_android_finder
Csl_Android_Finder
provided
jar
1.0.2
junit
junit
4.8.1
test
net.hockeyapp.android
HockeySDK
2.0.2
apklib
com.codeslap
android-facebook
1.6
compile
org.twitter4j
twitter4j-core
[3.0,)
com.jayway.android.robotium
robotium-solo
3.6
oss.sonatype.org-jayway-with-staging
http://oss.sonatype.org/content/groups/jayway-with-staging/
jakewharton
http://r.jakewharton.com/maven/release/
codeslap
http://casidiablo.github.com/codeslap-maven/repository/
${project.artifactId}
com.jayway.maven.plugins.android.generation2
android-maven-plugin
15
true
true
org.apache.maven.plugins
maven-surefire-plugin
2.13
org.apache.maven.plugins
maven-jarsigner-plugin
<!-- 1.2 -->
signing
sign
package
true
true
target/*.apk
../certificates/xxxx.keystore
xxx
xxxx
csl
тестовые проекты проводятся под main/java/... в тестовом проекте
Когда я собираю, я использую mvn чистый тест
ошибки его подбрасывание
ERROR] /Users/aidenfry/AndroidHSF(trunknew)/x_Android_Finder_Parent/x_Android_Finder_Test/src/main/java/com/xxxxxxx/x_android_finder_test/FinderActivityTest.java:[27,7] cannot access junit.framework.TestCase
[ERROR] class file for junit.framework.TestCase not found
[ERROR] public class FinderActivityTest extends ActivityInstrumentationTestCase2 {
[ERROR] /Users/aidenfry/AndroidHSF(trunknew)/x_Android_Finder_Parent/x_Android_Finder_Test/src/main/java/com/xxxx/xx_android_finder_test/FinderActivityTest.java:[39,8] cannot find symbol
[ERROR] symbol : variable super
[ERROR] location: class
Я могу обеспечить больше, но они все подобны этому, кажется им, косяк находит lib Junit? Но у меня уже есть это в dependancioes.
Если бы кто-либо может помочь/намекнуть для меня разобраться в этом беспорядке, Он очень ценился бы!