woocommerce-plugin
woocommerce-plugin copied to clipboard
Add Initial Unit Tests and Update Composer Dependencies
This is phase 1 of testing for blockonomics woocommerce plugin.
It contains unittests for functions that are independent of WordPress or Woocommerce functionality, focusing on the php/Blockonomics.php
file as it contains most of the plugin's functionality.
Instructions for Running Tests:
- Pull changes to your local machine
- Navigate to the project directory where the
composer.json
file is located - Run
composer install
to install the required dependencies. This step requires Composer to be installed on your machine.- If you don't have Composer installed, you can download it here.
- Once the dependencies are installed, you can run the tests using the following command:
vendor/bin/phpunit tests/
Note: The vendor
directory is included in the .gitignore
file and therefore are not committed to the repository. The composer install
command will create the vendor
directory and ensure you have the correct versions of the dependencies for running the tests.