Advertisement
Guest User

vvv cli phpunit

a guest
Feb 18th, 2019
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.69 KB | None | 0 0
  1. vagrant@vvv:~$ cd /srv/www/wordpress-default
  2. vagrant@vvv:/srv/www/wordpress-default$ wp scaffold plugin-tests example-plugin
  3. Success: Created test files.
  4. vagrant@vvv:/srv/www/wordpress-default$ cd public_html/wp-content/plugins/example-plugin
  5. vagrant@vvv:/srv/www/wordpress-default/public_html/wp-content/plugins/example-plugin$ bash bin/install-wp-tests.sh wordpress_example_test root root localhost latest
  6. + install_wp
  7. + '[' -d /srv/www/wordpress-develop/public_html/src/ ']'
  8. + return
  9. + install_test_suite
  10. ++ uname -s
  11. + [[ Linux == \D\a\r\w\i\n ]]
  12. + local ioption=-i
  13. + '[' '!' -d /srv/www/wordpress-develop/public_html/tests/phpunit/ ']'
  14. + '[' '!' -f wp-tests-config.php ']'
  15. + download https://develop.svn.wordpress.org/tags/5.0.3/wp-tests-config-sample.php /srv/www/wordpress-develop/public_html/tests/phpunit//wp-tests-config.php
  16. ++ which curl
  17. + '[' /usr/bin/curl ']'
  18. + curl -s https://develop.svn.wordpress.org/tags/5.0.3/wp-tests-config-sample.php
  19. ++ echo /srv/www/wordpress-develop/public_html/src/
  20. ++ sed 's:/\+$::'
  21. + WP_CORE_DIR=/srv/www/wordpress-develop/public_html/src
  22. + sed -i 's:dirname( __FILE__ ) . '\''/src/'\'':'\''/srv/www/wordpress-develop/public_html/src/'\'':' /srv/www/wordpress-develop/public_html/tests/phpunit//wp-tests-config.php
  23. + sed -i s/youremptytestdbnamehere/wordpress_example_test/ /srv/www/wordpress-develop/public_html/tests/phpunit//wp-tests-config.php
  24. + sed -i s/yourusernamehere/root/ /srv/www/wordpress-develop/public_html/tests/phpunit//wp-tests-config.php
  25. + sed -i s/yourpasswordhere/root/ /srv/www/wordpress-develop/public_html/tests/phpunit//wp-tests-config.php
  26. + sed -i 's|localhost|localhost|' /srv/www/wordpress-develop/public_html/tests/phpunit//wp-tests-config.php
  27. + install_db
  28. + '[' false = true ']'
  29. + PARTS=(${DB_HOST//\:/ })
  30. + local PARTS
  31. + local DB_HOSTNAME=localhost
  32. + local DB_SOCK_OR_PORT=
  33. + local EXTRA=
  34. + '[' -z localhost ']'
  35. ++ echo
  36. ++ grep -e '^[0-9]\{1,\}$'
  37. + '[' ']'
  38. + '[' -z ']'
  39. + '[' -z localhost ']'
  40. + EXTRA=' --host=localhost --protocol=tcp'
  41. + mysqladmin create wordpress_example_test --user=root --password=root --host=localhost --protocol=tcp
  42.  
  43. vagrant@vvv:/srv/www/wordpress-default/public_html/wp-content/plugins/example-plugin$ phpunit
  44. Installing...
  45. Running as single site... To run multisite, use -c tests/phpunit/multisite.xml
  46. Not running ajax tests. To execute these, use --group ajax.
  47. Not running ms-files tests. To execute these, use --group ms-files.
  48. Not running external-http tests. To execute these, use --group external-http.
  49. PHPUnit 6.5.13 by Sebastian Bergmann and contributors.
  50.  
  51. Time: 1.6 seconds, Memory: 24.00MB
  52.  
  53. No tests executed!
  54. vagrant@vvv:/srv/www/wordpress-default/public_html/wp-content/plugins/example-plugin$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement