-
A simple
OKHttp
client mock, using a programmable request interceptorval interceptor = MockInterceptor() interceptor.rule(url eq "https://testserver/api/json") { respond("{succeed:true}", MEDIATYPE_JSON) }
-
A plugin for generating BuildConstants for any kind of Gradle projects: Java, Kotlin, Groovy, etc. Designed for KTS scripts.
buildConfig { buildConfigField("APP_NAME", project.name) buildConfigField("APP_VERSION", provider { "${project.version}" })
-
gradle-android-test-aggregation-plugin
A couple Gradle plugins to make Android modules to work with JaCoCo Report Aggregation Plugin and Test Report Aggregation Plugin
-
A set of Gradle plugins to propagate CODEOWNERS of classes to runtime for JVM and Kotlin Multiplatform.
val ownersOfFoo = codeOwnersOf<Foo>()
-
gradle-android-manifest-lock-plugin
A Gradle plugin for providing .lock file support for AndroidManifest. Useful to control what's introduced by 3rd party dependencies into your Manifest.
main: namespace: io.github.gmazzo.android.manifest.lock.demo minSDK: 24 targetSDK: 34 permissions: - android.permission.ACCESS_NETWORK_STATE - android.permission.FOREGROUND_SERVICE
-
Spawns Docker Compose environments for Test tasks as a Gradle's
Shared Build Service
.@Value("\${container.main-app.host}:\${container.main-app.tcp80}") private lateinit var appEndpoint: String
-
gradle-report-publications-plugin
A Gradle plugin that decorates the build logs with maven coordinates of artifacts published with
publish
orpublishToMavenLocal
-
An unofficial Docker image for running Kotlin scripts.
docker run -v ./scripts:/scripts gmazzo/kotlin /scripts/hello.kts
-
Reports
JUnit
,Android Lint
,Detekt
and any otherCheckStyle
compatibleXML
reports as GitHub Actions annotations. Mostly targetingGradle
buildssteps: - name: Run Gradle build run: ./gradlew build # this is an example - name: Report build results uses: gmazzo/publish-report-annotations@v1 # target latest major if: ${{ !cancelled() }}
Test Suites โ 93 passed ๐ก 1 skipped โ 4 failed โ took โ org.test.sample.AnotherTestSuite
- โ aTest[maxDuration=100] (โ 0.054)
- โ aTest[maxDuration=200] (โ 0.107)
- โ aTest[maxDuration=300] (โ 0.238)
- โ aTest[maxDuration=400] (โ 0.103)
4 0 0 0.506 โ org.test.sample.FlakyFailingTestSuite
- โ failingTest() (โ 0.011)
0 0 1 2.07 1 0 0 1.295 โ org.test.sample.SampleTestSuite
- ๐ก a test skipped() (โ 0)
- โ a test that fails() (โ 0.002)
- โ a test that passes() (โ 0.001)
- โ a test that throws an exception() (โ 0.001)
1 1 2 0.004