Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write integration tests #35

Open
5 tasks
bilfeldt opened this issue Nov 16, 2023 · 0 comments
Open
5 tasks

Write integration tests #35

bilfeldt opened this issue Nov 16, 2023 · 0 comments
Assignees

Comments

@bilfeldt
Copy link
Member

bilfeldt commented Nov 16, 2023

Implement integration (WP) tests (see https://make.wordpress.org/cli/handbook/misc/plugin-unit-tests/).

Let us take the "easiest" one first. Ideas for tests:

  • Test actions are registered
  • Test action function are running correct functions
  • Test shipping methods
  • Test showing pickup points
  • Test filters and hooks

Ideally we are able to run these tests on a set of different WooCommerce / WordPress versions both locally and in Github actions. See this guide (note the commands are outdated though) and this scafolding command: https://developer.wordpress.org/cli/commands/scaffold/plugin-tests/

Start with testing using:

  • Latest version of WordPress
  • Latest version of WooCommerce
  • Latest version of PHP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants