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

Latest commit

 

History

History
25 lines (19 loc) · 957 Bytes

manual_tasks_creation.md

File metadata and controls

25 lines (19 loc) · 957 Bytes

Creating test tasks manually

tasks.register<FlankRunTask>("myFlankRunTask") {
  // `flankExecutable` is the configuration cotaining flank dependency
  flankJarClasspath.from(flankExecutable)

  // Set the credentials file
  serviceAccountCredentials.set(...)

  // Any string you want to use, usually the variant we are testing
  // It will be used in the path to store the results in your build: "build/flank/$variant"
  variant.set(...)

  // The flank yaml file, it can be the output of a task or a file you created manually for example.
  // It's important that you use relative paths to your apks if you wan't it to be cacheable
  flankYaml.set(...)

  // Do you want your task to be cacheable? defaults to false
  hermeticTests.set(true)

  // Set any Provider<RegularFile> that will provide the APKs
  // Must be the same you used for the yaml
  appApk(...)
  testApk(...)
}