selendroid / demoproject-selendroid

Demonstrates how to test an Android app using selendroid with maven. Tests are checking a native and a hybrid cordova app and the mobile web.
http://selendroid.io/quickStart.html
47 stars 95 forks source link

Missing instructions on how to run this with maven #9

Closed frenkel closed 10 years ago

frenkel commented 10 years ago

I've searched the selendroid website and can't find any instructions on what command I need to run to start a test. People without maven experience don't know how to start using this.

lukeis commented 10 years ago

You don't need to run them with maven... if you don't use maven you should set up a project like you normally would otherwise and copy the test class.

If you really want to know how to use maven, if in eclipse, you should install the m2eclipse plugin, if in IntelliJ it should just work (it already has maven plugins built into it). You then should be able to simply right click on the test and "run as JUnit test". If you want to run the whole suite via command line it's simply mvn test

I don't think we should be including instructions on how to use maven, since if you're not using maven we don't want to be in the business of providing a maven tutorial and otherwise it should be fairly easy to copy the java classes accordingly (and include the selendroid jar as one would do themselves normally).

frenkel commented 10 years ago

You're right, I complained because I couldn't find all the dependencies needed to run this. I've now manually searched and downloaded all the needed jars and it's working. Thanks!