Skip to content

For developers who want to run WordPress plugin unit tests on Windows but cannot install using bash.

License

Notifications You must be signed in to change notification settings

Rundiz-WP/wp-plugin-unit-tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WordPress plugin unit tests

These files and folders for developers who want to run WordPress plugin unit tests on Windows but cannot install it using bash.

Install:

  • Download and extract everything inside tmp folder into your PHP CLI temp folder location.
    For Windows, use this command to find out. php -i | findstr temp.
    For Linux, use this command to find out. php -i | grep temp.
  • Follow instructions on 3 README.md files.
  • Follow the Generate the plugin test files instruction on thispage. Do not go to other step and no need to run bash. OR...
  • Create your plugin main file with required header to prevent error.
    • If the error occurs and it is related to PHP opcache, please restart your computer.
  • Run phpunit command.

If no error occur then congratulations! You are ready to start plugin development.

Notice

These files and folders are copied after I run the command on Windows sub system Ubuntu.
All the credits are for these pages:

About

For developers who want to run WordPress plugin unit tests on Windows but cannot install using bash.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published