Skip to content

apaky/gradle-android-parallel-instrumentation-test-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

A gradle android plugin capable of running instrumentation tests in parallel

Plugin runs instrumentation tests in parallel. Deploys the app and test app to each emulator and runs a different set of tests on each emulator.

Requirements

  • Enough emulators running based on the maximum concurrent executions as configured in the plugin DSL

  • Gradle Android build tools plugin 1.0.+

#Usage

Requires the android plugin to be loaded.

apply plugin: 'parallel-instrumentation-tests'

parallelInstrumentationTests {
  concurrentInstrumentationPackages = [	  
	  "com.acme.instrumentation.test.foo",
  	  "com.acme.instrumentation.test.bar"
  	  ]

  onBeforeAllTests {
    println "Hi, I'm executed before any test is run"
  }

  onBeforeDeviceTest { device ->
    println "Before test on device ${device.name}"
  }

  onAfterDeviceTest { device ->
    println "After test on device ${device.name}"
  }
}

The above configuration will execute two concurrent instrumentation tests. One execution will run the tests in package com.acme.instrument.test.foo, and the other will run the tests in com.acme.instrumentation.test.bar

About

Divide your instrumentation tests up and execute them across multiple emulators or devices in parallel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages