Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Releases: Flank/simple-flank

v0.4.0

12 May 19:50
2229394
Compare
Choose a tag to compare
  • Fixed Configuration Cache with Gradle 8
  • New task to allow using a normal account instead of service credentials.

Breaking change: AGP 8 required

Many thanks to @francescocervone for contributing!

v0.3.0

03 Jun 21:47
854e8cd
Compare
Choose a tag to compare

Small improvements:

  • Don't fail if there are no tests
  • Allow customers to override properties in tasks

v0.2.1: groovy DSL compatibility

16 May 23:26
4e6ff78
Compare
Choose a tag to compare

Devices can be easily declared from groovy too

v0.2.0

11 May 14:48
Compare
Choose a tag to compare

SimpleFlank is now more configurable:

simpleFlank {
  // Changing the credentials file, default: rootProject.file("ftl-credentials.json")
  credentialsFile.set(file("some-credentials.json"))
  
  // Making the tests cacheable
  hermeticTests.set(true)
  // if all modules have hermetic tests, add `simple-flank.hermeticTests=true` to your `gradle.properties`

  // Choosing the devices manually
  // default is NexusLowRes, and the minSdk from the project
  devices.set(listOf(
    io.github.flank.gradle.NexusLowRes(23),
    io.github.flank.gradle.NexusLowRes(30, "es_ES", io.github.flank.gradle.Device.Orientation.landscape),
    io.github.flank.gradle.Device("oriole", 31, "Google", "Pixel 6")
  ))

  // Filtering tests
  testTargets {
    inClass("io.flank.sample.TestClass")
    notInClass("io.flank.sample.NotATestClass", "io.flank.sample.NotATestClassEither")

    small() // or medium() or large()

    annotation("io.flank.test.InstrumentationTest")
    notAnnotation("io.flank.test.Flaky")

    inPackage("io.flank.sample")
    notInPackage("io.flank.external")

    testFile("/sdcard/tmp/testFile.txt")
    notTestFile("/sdcard/tmp/notTestFile.txt")

    regex("BarTest.*")

    filter("com.android.foo.MyCustomFilter", "com.android.foo.AnotherCustomFilter")

    runnerBuilder("com.android.foo.MyCustomBuilder", "com.android.foo.AnotherCustomBuilder")
  }

  // EnvironmentVariables
  // default 
  environmentVariables.set(mapOf("clearPackageData" to "true", "something" to "1", "whatever" to "I don't know"))

  // default extracted from credentials
  projectId.set("my-GCP-project")

  // Downloading files
  directoriesToPull.set(listOf("/sdcard/"))
  filesToDownload.set(listOf("a.txt","b.txt"))
  keepFilePath.set(true)


  // other options
  testTimeout.set("15m")
  recordVideo.set(true)
  numFlakyTestAttempts.set(3)
  failFast.set(true)
  performanceMetrics.set(true)
}

v0.1.0

05 May 15:19
Compare
Choose a tag to compare

Make tests cacheable for all the modules adding the gradle property:
simple-flank.hermeticTests=true

V0.0.2 resubmit

26 Apr 07:15
8032371
Compare
Choose a tag to compare
v0.0.2-retry

Publishing to GradlePluginsPortal (#10)

v0.0.2

25 Apr 21:23
8032371
Compare
Choose a tag to compare

Same as 0.0.1 but produced by CI

It's functional but still simple.