Skip to content

Instantly share code, notes, and snippets.

View serdarceran's full-sized avatar

Serdar serdarceran

  • Istanbul
View GitHub Profile
@serdarceran
serdarceran / test.gradle
Created January 31, 2017 22:17 — forked from eriwen/test.gradle
Separating tests from integration tests with Gradle
// Usage: gradlew [-Dtest.type=all|unit|integration] test
test {
String testType = System.properties['test.type']
if (testType == 'integration') {
include '**/*IntegrationTest.*'
include '**/*IntegrationSpec.*'
} else if (testType == 'unit') {
include '**/*Test.*'
include '**/*Spec.*'