Robotium 【Robotium+Jenkins】测试工程里有引用项目工程的方法,build 测试工程报错

Vincent · July 11, 2014 · Last by AllenLai replied at July 20, 2014 · 1107 hits

举例来说,有一个项目工程 App,一个 robotium 测试工程 TestApp(依赖 App),在 IDE 中 build 都没问题,集成到 Jenkins 中编译时报错,所有引用 App 的功能代码都提示找不到的引用的类。因为在 IDE 里面都是直接加引用的,不知道在 Jenkins 里面要怎么配置?

共收到 3 条回复 时间 点赞

eclipse 也是读取的 ant 配置。得看你的 ant 配置是否正确。推荐用 maven 或者 gradle

Vincent #2 · July 14, 2014 Author

#1 楼 @seveniruby 我是直接 Android update project 生成 ant build.xml 的。看来还得动手改一下

@cjtcwyk 其实这个 Jenkis 就有配置项的了,你可以在 Build TestApp 之前必须先 Build App 项目 或者 在 Build App 项目成功后自动 build TestApp 项目。你仔细看看每个 job 的配置都有这些的

需要 Sign In 后方可回复, 如果你还没有账号请点击这里 Sign Up