woocommerce / qit-cli
A command line interface for WooCommerce Quality Insights Toolkit (QIT).
Installs: 309 410
Dependents: 1
Suggesters: 0
Security: 0
Stars: 19
Watchers: 72
Forks: 2
Open Issues: 5
Requires
- php: ^7.2.5 | ^8
- ext-curl: *
- dev-trunk
- 0.7.1
- 0.7.0
- 0.6.0
- 0.5.4
- 0.5.3
- 0.5.2
- 0.5.1
- 0.5.0
- 0.4.2
- 0.4.1
- 0.4.0
- 0.3.5
- 0.3.4
- 0.3.3
- 0.3.2
- 0.3.1
- 0.3
- 0.2.1
- 0.2
- 0.1
- dev-24-09/orchestration
- dev-24-11/sync-wc-95-beta
- dev-24-07/custom-tests-self-tests
- dev-24-05/custom-test-self-test-on-prod
- dev-23-04/add-deactivation-syntax-checks
- dev-23-09/semgrep-exclusion-selftest
- dev-23-06/ai-fixer
- dev-23-07/64ac6ac691d19-update-tests-snapshots
- dev-23-07/64ac67d755654-update-tests-snapshots
- dev-23-06/zip-with-no-parent-dir
- dev-23-03/alphanumeric-character
- dev-23-01/vendor-auth
- dev-23-01/multiple-environments
This package is auto-updated.
Last update: 2024-11-21 15:51:44 UTC
README
QIT CLI
Managed Tests
Custom Tests
Test Environment
Quality Insights Toolkit (QIT)
QIT is a testing platform for WordPress Plugins and Themes developed by WooCommerce, designed to simplify and streamline your testing process. We are currently in closed beta operating only in the Woo Marketplace.
Managed Tests
Run tests out-of-the box with zero configuration.
- Woo E2E Test - Runs WooCommerce End-to-End tests alongside your extension.
- Woo API Test - Runs WooCommerce API tests with your extension.
- Activation Test - Activates your plugin and logs any PHP notice, warning, and error.
- Security Test - Scan your plugin for adherence to best practices in writing secure code.
- PHPStan Test - Run PHPStan checks to catch issues early.
- PHP Compatibility Test - Run PHPCompatibility tests to detect issues with different PHP versions.
- Malware Test - Scan your code with the Malware check.
- Performance Tests (Work-in-progress)
Custom E2E Tests (Early Access)
Write your own E2E tests using frameworks such as Playwright, or leverage pre-built tests to effortlessly increase your test coverage.
Read more about Custom E2E Tests.
Local Test Environment (Early Access)
Fast, disposable and configurable test environment designed to do one thing well: Run tests.
Our Alpine-based Docker images are perfect for CI systems, while also offering native ARM64 support for Apple Silicon and optimized Docker volumes for faster performance on Mac, Linux, and Windows WSL for local tests.
Read more about the Local Test Environment.
And much more:
- Configurable Environment: Configurable PHP, WordPress, WooCommerce versions, and more.
- In-Depth Analysis: Tracks all PHP notices, warnings, and errors during testing.
- Development & Published Versions: Test with both development and published versions of your plugins.
- GitHub Integration: Integrate QIT into your PR reviews with GitHub Actions.
- Test Reports: Detailed test reports to help you understand the results.
- Notifications: Stay informed with test result notifications.
Documentation
For more detailed information on QIT and how to use it, refer to the documentation.
Installing QIT
- Run
composer require woocommerce/qit-cli --dev
- Execute
./vendor/bin/qit
to authenticate with your WooCommerce.com Partner Developer account.
You can use these parameters individually or in combination to create different scenarios for your tests. Run qit run:<test-type> --help
to see all the available options. Different test types will have different options to choose from.
Can I use QIT?
Most features of QIT requires you to log-in as a Partner Developer of the WooCommerce.com Marketplace, but we have plans to open it to all developers in the future.
The QIT Local Test Environment does not require you to be connected to WooCommerce.com, although to install WooCommerce.com Premium plugins and themes on your test environment you will need to be connected as a Partner Developer of the Woo.com Marketplace (and have access to the extensions you want to test).
Support
If you need help with QIT, open an issue on this GitHub repository.