diff --git a/docs/managed-tests/08-validation.md b/docs/managed-tests/08-validation.md new file mode 100644 index 0000000..60e2853 --- /dev/null +++ b/docs/managed-tests/08-validation.md @@ -0,0 +1,16 @@ +# Validation Tests + +Our validation test is designed to inform you of any issues with plugin and theme metadata. Right now it is purely informative, but in the future it may block submissions or updates. + +## Types of Issues Flagged +The presence and value of certain headers will be checked: + +- `Requires PHP` - warning if not present in main plugin or theme file. +- More coming soon! + +## What to do if it fails + +If your validation test is failing, please review the following steps: +- Open the test report. +- Identify the causes of the failure (typically a missing or misspelled header) and remedy it. +- If you believe you've run across a bug in the test, please email us at qit@woocommerce.com so we can review and make the necessary adjustments. diff --git a/docs/support/test-options.md b/docs/support/test-options.md index 810ed00..eb934d6 100644 --- a/docs/support/test-options.md +++ b/docs/support/test-options.md @@ -6,14 +6,14 @@ sidebar_position: 1 The table below shows what options are available for each test type. For example, for Activation tests you can supply a WordPress version but for the security tests it isn't supported. -| | Activation | Woo E2E | Woo API | Security | PHPStan | -| ---------------------------- | ---------- |---------|---------| -------- | ------- | -| WordPress Versions | ✅ | ✅ | ✅ | ❌ | ❌ | -| WooCommerce Versions | ✅ | ✅ | ✅ | ❌ | ❌ | -| WooCommerce Features | ✅ | ✅ | ✅ | ❌ | ❌ | -| PHP Version | ✅ | ✅ | ✅ | ❌ | ❌ | -| Additional Extensions | ✅ | ✅ | ✅ | ❌ | ❌ | -| Additional WordPress Plugins | ✅ | ✅ | ✅ | ❌ | ❌ | +| | Activation | Woo E2E | Woo API | Security | PHPStan | Validation | +| ---------------------------- | ---------- |---------|---------| -------- | ------- | ---------- | +| WordPress Versions | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | +| WooCommerce Versions | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | +| WooCommerce Features | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | +| PHP Version | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | +| Additional Extensions | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | +| Additional WordPress Plugins | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ## WordPress and WooCommerce versions diff --git a/src/components/TestTypes.js b/src/components/TestTypes.js index 7863809..dcf496e 100644 --- a/src/components/TestTypes.js +++ b/src/components/TestTypes.js @@ -22,6 +22,8 @@ export default function TestTypes({ includeCode = false }) { style={{ display: includeCode ? 'inline-block' : 'none' }}>run:phpcompatibility
  • Malware tests run:malware
  • +
  • Validation Tests run:validation
  • Performance tests (Coming soon)