Interface BuildMutator

All Known Implementing Classes:
AbstractBuildMutator, AbstractCacheCleanupMutator, AbstractCleanupMutator, AbstractDelegateFileMutator, AbstractFileChangeMutator, AbstractGitMutator, AbstractJavaSourceFileMutator, AbstractKotlinSourceFileMutator, ApplyAbiChangeToJavaSourceFileMutator, ApplyAbiChangeToKotlinSourceFileMutator, ApplyAbiChangeToSourceFileMutator, ApplyBuildScriptChangeFileMutator, ApplyChangeToAndroidLayoutFileMutator, ApplyChangeToAndroidManifestFileMutator, ApplyChangeToAndroidResourceFileMutator, ApplyChangeToComposableKotlinFileMutator, ApplyChangeToNativeSourceFileMutator, ApplyChangeToPropertyResourceFileMutator, ApplyNonAbiChangeToJavaSourceFileMutator, ApplyNonAbiChangeToKotlinSourceFileMutator, ApplyNonAbiChangeToSourceFileMutator, ApplyProjectDependencyChangeMutator, ApplyValueChangeToAndroidResourceFileMutator, ClearArtifactTransformCacheMutator, ClearBuildCacheMutator, ClearConfigurationCacheStateMutator, ClearGradleUserHomeMutator, ClearJarsCacheMutator, ClearProjectCacheMutator, CompositeBuildMutator, GitCheckoutMutator, GitRevertMutator, ShowBuildCacheSizeMutator

public interface BuildMutator
  • Field Details

  • Method Details

    • validate

      default void validate(BuildInvoker invoker)
      Validates if the mutator works with the given invoker.
    • beforeScenario

      default void beforeScenario(ScenarioContext context)
      Runs before the first iteration of the scenario.
    • beforeCleanup

      default void beforeCleanup(BuildContext context)
      Runs before each iteration if cleanup tasks are declared.
    • afterCleanup

      default void afterCleanup(BuildContext context, Throwable error)
      Runs after each iteration of cleanup has finished.
    • beforeBuild

      default void beforeBuild(BuildContext context)
      Runs before starting an iteration of the build, after any potential cleanup has finished.
    • afterBuild

      default void afterBuild(BuildContext context, Throwable error)
      Runs after each iteration of the build has finished.
    • afterScenario

      default void afterScenario(ScenarioContext context)
      Runs after the last iteration of the scenario has finished.