Skip to content

Add automated tests #26

Open
Open

Description

@Rahe

Context

The plugin has no automated tests:

  • no tests/ directory, no phpunit.xml, no JS test files;
  • composer.json declares a phpunit script, but PHPUnit is not a dependency and has no configuration, so the script cannot run;
  • package.json has no JS test script;
  • CI (quality-php.yml, quality-js.yml) only runs composer validate, phpcs and eslint.

Recent security fixes (1.2.1 stored XSS, #24 / #25 allow policy) were only checked by hand, with local throwaway scripts.

Expected

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions