# Speeding Up Gradle Test Execution in Android CI Pipelines

DevFeed: [Speeding Up Gradle Test Execution in Android CI Pipelines](<https://devfeed.tech/articles/superior-testing-need-for-speed-29379.md>)

Original publisher: [Read original article](<https://arturdryomov.dev/posts/superior-testing-need-for-speed/>)

Author: Artur Dryomov

Published: 2019-04-30T00:00:00Z

Content type: tutorial

Language: en

Sources: [Artur Dryomov](<https://devfeed.tech/sources/artur-dryomov.md>)

Topics: [Testing](<https://devfeed.tech/topics/testing.md>), [Gradle](<https://devfeed.tech/topics/gradle.md>), [ci](<https://devfeed.tech/topics/ci.md>), [Android](<https://devfeed.tech/topics/android.md>), [cpu](<https://devfeed.tech/topics/cpu.md>)

Tags: [build](<https://devfeed.tech/tags/build.md>), [ci](<https://devfeed.tech/tags/ci.md>), [code](<https://devfeed.tech/tags/code.md>), [cpu](<https://devfeed.tech/tags/cpu.md>), [gradle](<https://devfeed.tech/tags/gradle.md>), [parallel](<https://devfeed.tech/tags/parallel.md>), [pipeline](<https://devfeed.tech/tags/pipeline.md>), [testing](<https://devfeed.tech/tags/testing.md>), [tests](<https://devfeed.tech/tags/tests.md>), [time](<https://devfeed.tech/tags/time.md>)

## AI overview

This tutorial discusses ways to reduce Gradle test execution time without changing source code, including parallel test-class execution, disabling unnecessary reports, and limiting Android variant testing. It reports a reduction from 53 to 41 seconds through parallel execution, with further small savings from the other changes.

## Source excerpt

Everybody wants to have a faster development cycle. Everything should be flawless and straightforward. Nobody wants to have hour-long builds and stuck CI queues. We need results! Now! Or maybe even in the past, preemptively. Guard from the Ruby ecosystem comes to mind, starting tests on file changes, without doing it manually. Talking about tests -- they are a part of the cycle, right? We run them both locally and remotely (as part of a CI pipeline). It takes time and I think we can do better!