An open API service indexing awesome lists of open source software.

https://github.com/ardesco/appium-maven-plugin

A maven plugin for appium
https://github.com/ardesco/appium-maven-plugin

appium maven-plugin

Last synced: 5 months ago
JSON representation

A maven plugin for appium

Awesome Lists containing this project

README

          

#Appium Maven Plugin
=================================

[![Join the chat at https://gitter.im/jmeter-maven-plugin/jmeter-maven-plugin](https://badges.gitter.im/Ardesco/appium-maven-plugin.svg)](https://gitter.im/Ardesco/appium-maven-plugin?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Build Status](https://travis-ci.org/Ardesco/appium-maven-plugin.svg?branch=master)](https://travis-ci.org/Ardesco/appium-maven-plugin)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.lazerycode.appium/appium-maven-plugin/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.lazerycode.jmeter/jmeter-maven-plugin)
[![Javadoc](https://javadoc-emblem.rhcloud.com/doc/com.lazerycode.appium/appium-maven-plugin/badge.svg)](http://www.javadoc.io/doc/com.lazerycode.appium/appium-maven-plugin)

A maven plugin for appium

#Basic Usage
-----

### Add the plugin to your project

* Add the plugin to the build section of your pom's project :

```

com.lazerycode.appium
appium-maven-plugin
0.1.0

${project.basedir}
${project.basedir}



start appium
pre-integration-test

start



stop appium
post-integration-test

stop


```

* Use the frontend-maven-plugin to download node and appium

```

com.github.eirslett
frontend-maven-plugin
1.3

src/test



install node and npm
process-resources

install-node-and-npm


v7.4.0
4.1.1



npm install
process-resources

npm


install


```

This will require a package.json:

```
{
"name": "mobile-appium-tests",
"private": true,
"license": "",
"version": "0.0.0",
"description": "Download appium for automated tests",
"devDependencies": {
"appium": "1.6.5",
"ios-deploy":"1.9.1"
},
"scripts": {
"prestart": "npm install",
"pretest": "npm install"
}
}
```

### Run the build

`mvn verify`

Now node and appium will be downloaded and appium will stop and start as part of your build.