How to start Android test unit from command line -


im writing automatic test program. have completed writing on android. however, want write script run command line adb shell. know how it? test many components of program, running script save lots of effort.

thanks.

here manifest file:

<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android"   package="com.wsandroid.test"   android:versioncode="1"   android:versionname="1.0"> <application android:icon="@drawable/icon" android:label="@string/app_name"> <uses-library android:name="android.test.runner" /> </application> <uses-sdk android:minsdkversion="3" /> <instrumentation android:targetpackage="com.wsandroid" android:name="android.test.instrumentationtestrunner" /> 

thanks

see android developer documentation, there set of commands run 1 single unit test:

$ adb shell instrument -w \  -e class com.android.samples.alltests \  com.android.samples.tests/android.test.instrumentationtestrunner 

you specify class-name class label in above command-line sequence.


Comments

Popular posts from this blog

SAP Web Service from .NET via WCF -

Optimized Line drawing in QT -

datetime - str to time in python -