Closed billiemead closed 10 months ago
@billiemead I'm sorry to hear about your frustration with the installation process of VRTs. We obviously didn't make clear that this repository on GitHub is meant for development purposes only. That's why you need to run the build process for it to work. You will not need to run the build process if you use the published plugin.
To install the plugin on your website, please choose one of the following approaches:
wpackagist-plugin/visual-regression-tests
.As the core team of VRTs is developing on Mac, we don't plan to support other dev environments right now, but we would greatly appreciate any fixes that add support.
I hope this helps and that VRTs will be helpful for you!
@billiemead I'm sorry to hear about your frustration with the installation process of VRTs. We obviously didn't make clear that this repository on GitHub is meant for development purposes only. That's why you need to run the build process for it to work. You will not need to run the build process if you use the published plugin.
To install the plugin on your website, please choose one of the following approaches:
- Install from your WordPress backend: Plugins -> Add New Plugin and search for "vrts".
- Download from the WordPress Plugin Directory: https://wordpress.org/plugins/visual-regression-tests/.
- Install via composer with wpackagist:
wpackagist-plugin/visual-regression-tests
.As the core team of VRTs is developing on Mac, we don't plan to support other dev environments right now, but we would greatly appreciate any fixes that add support.
I hope this helps and that VRTs will be helpful for you!
Thank you! That was a very helpful reply, and was exactly the steps I took to install the plugin... with a small change for Windows OS. I will make a pull request with suggestions for Windows PC. I am still not able to generate screenshots but will create a separate issue if you would like to close this as resolved?
@billiemead I'm glad to hear that!
It's surprising that the screenshots still do not generate for you. Please ensure that the website is publicly accessible in order to set up and run the tests. Password protection or any kind of firewall might prevent the plugin from working correctly.
If you continue to have issues with the usage, please open a new ticket here on GitHub, or in the WordPress Support Forum.
OS: Windows 10 NPM: 7.10.0 NodeJS: 16.0.0 VRT: 1.7.1 WP: 6.3.1 PHP: 7.4
CMD:
npm run build
Error:'.' is not recognized as an internal or external command,
(verbose log below) Related: https://github.com/yarnpkg/yarn/issues/1729When using Windows OS
package.json
cannot use./
for paths, so the first script to fail islint:php
because of the path./vendor/bin/phpcs
Fix I used: Replacing
/
with\\