Class NativeTestingBasePlugin

java.lang.Object
org.gradle.nativeplatform.test.plugins.NativeTestingBasePlugin
All Implemented Interfaces:
Plugin<org.gradle.api.internal.project.ProjectInternal>

@Incubating public class NativeTestingBasePlugin extends Object implements Plugin<org.gradle.api.internal.project.ProjectInternal>
Common base plugin for all native testing plugins.

Expects plugins to register the native test suites in the Project.getComponents() container, and defines a number of rules that act on these components to configure them.

  • Adds a "test" task.
  • Configures the "test" task to run the tests of the test component, if present. Expects the test component to be of type TestSuiteComponent.
Since:
4.5
  • Constructor Details

    • NativeTestingBasePlugin

      public NativeTestingBasePlugin()
  • Method Details

    • apply

      public void apply(org.gradle.api.internal.project.ProjectInternal project)
      Description copied from interface: Plugin
      Apply this plugin to the given target object.
      Specified by:
      apply in interface Plugin<org.gradle.api.internal.project.ProjectInternal>
      Parameters:
      project - The target object