Skip to content

Create Check_Runner interface #13

@mehulkaklotar

Description

@mehulkaklotar

Description

The Check Runner interface will be implemented by the specific context runner classes like AJAX runner or CLI runner. This interface will have access to the Checks class and its methods to run checks. The interface will have a run method that will be the responsibility of classes to implement to start the runner according to their context.

Acceptance Criteria

  • A new Check_Runner interface is created and exists at includes/Checker.
  • The Check_Runner interface contains a public is_plugin_check() method.
    • The is_plugin_check method will return a boolean.
    • The method will be used to determine if the current request is intended for the plugin checker.
  • The Check_Runner interface contains a public prepare() method.
    • The prepare() method will be used to run any universal preparations depending on the checks requested.
  • The Check_Runner interface contains a public run() method.
    • The run method returns an instance of the Check_Results class.
    • The method will run the requested checks against the plugin context and return the results.

Metadata

Metadata

Labels

InfrastructureIssues for the overall plugin infrastructure[Type] EnhancementA suggestion for improvement of an existing feature

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions