{"id":3279,"date":"2024-10-18T15:45:01","date_gmt":"2024-10-18T07:45:01","guid":{"rendered":"https:\/\/www.openbyt.com\/?p=3279"},"modified":"2024-10-18T15:52:40","modified_gmt":"2024-10-18T07:52:40","slug":"how-to-implement-automated-testing-in-your-wordpress-workflow","status":"publish","type":"post","link":"https:\/\/www.openbyt.com\/ja\/\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306e\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u306b\u81ea\u52d5\u30c6\u30b9\u30c8\u3092\u5c0e\u5165","title":{"rendered":"WordPress\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u306b\u81ea\u52d5\u30c6\u30b9\u30c8\u3092\u5c0e\u5165\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<div class=\"wp-block-group is-nowrap is-layout-flex wp-container-core-group-is-layout-ad2f72ca wp-block-group-is-layout-flex\"><p>\u81ea\u52d5\u30c6\u30b9\u30c8\u306f\u3001WordPress \u958b\u767a\u8005\u306b\u3068\u3063\u3066\u96e3\u3057\u304f\u611f\u3058\u3089\u308c\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u7db1\u6e21\u308a\u3092\u3057\u3066\u3044\u308b\u3068\u304d\u306e\u5b89\u5168\u30cd\u30c3\u30c8\u306e\u3088\u3046\u306a\u3082\u306e\u3060\u3068\u8003\u3048\u3066\u304f\u3060\u3055\u3044\u3002\u30bb\u30fc\u30d5\u30c6\u30a3\u30cd\u30c3\u30c8\u304c\u30df\u30b9\u3092\u30ad\u30e3\u30c3\u30c1\u3059\u308b\u3088\u3046\u306b\u3001\u81ea\u52d5\u30c6\u30b9\u30c8\u306f\u672c\u756a\u74b0\u5883\u306b\u5165\u308b\u524d\u306b\u30a8\u30e9\u30fc\u3092\u30ad\u30e3\u30c3\u30c1\u3057\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u5b89\u5b9a\u6027\u3001\u52b9\u7387\u6027\u3001\u62e1\u5f35\u6027\u3092\u91cd\u8996\u3059\u308b\u958b\u767a\u306e\u4e16\u754c\u3067\u306f\u3001\u81ea\u52d5\u30c6\u30b9\u30c8\u306f\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3092\u52b9\u7387\u5316\u3059\u308b\u305f\u3081\u306b\u63a1\u7528\u3067\u304d\u308b\u6700\u3082\u52b9\u679c\u7684\u306a\u30c4\u30fc\u30eb\u306e\u3072\u3068\u3064\u3067\u3059\u3002\u3053\u306e\u30ac\u30a4\u30c9\u306f\u3001\u54c1\u8cea\u4fdd\u8a3c\u30d7\u30ed\u30bb\u30b9\u3092\u5f37\u5316\u3057\u3001\u30d7\u30ed\u30d5\u30a7\u30c3\u30b7\u30e7\u30ca\u30eb\u3068\u3057\u3066\u6210\u9577\u3057\u305f\u3044\u3068\u8003\u3048\u3066\u3044\u308b WordPress \u958b\u767a\u8005\u5411\u3051\u306b\u66f8\u304b\u308c\u3066\u3044\u307e\u3059\u3002\u81ea\u52d5\u30c6\u30b9\u30c8\u306e\u8a2d\u5b9a\u306b\u3064\u3044\u3066\u3001\u30b3\u30fc\u30c9\u4f8b\u3068\u5b9f\u8df5\u7684\u306a\u89e3\u8aac\u3092\u4ea4\u3048\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/p><\/div><figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-14.34.00-A-WordPress-developer-walking-a-tightrope-with-a-supportive-visible-safety-net-below-labeled-Automated-Testing.-The-developer-is-holding-a-laptop-d.webp\" alt=\"\" class=\"wp-image-3299\" srcset=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-14.34.00-A-WordPress-developer-walking-a-tightrope-with-a-supportive-visible-safety-net-below-labeled-Automated-Testing.-The-developer-is-holding-a-laptop-d.webp 1024w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-14.34.00-A-WordPress-developer-walking-a-tightrope-with-a-supportive-visible-safety-net-below-labeled-Automated-Testing.-The-developer-is-holding-a-laptop-d-600x600.webp 600w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-14.34.00-A-WordPress-developer-walking-a-tightrope-with-a-supportive-visible-safety-net-below-labeled-Automated-Testing.-The-developer-is-holding-a-laptop-d-100x100.webp 100w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-14.34.00-A-WordPress-developer-walking-a-tightrope-with-a-supportive-visible-safety-net-below-labeled-Automated-Testing.-The-developer-is-holding-a-laptop-d-300x300.webp 300w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-14.34.00-A-WordPress-developer-walking-a-tightrope-with-a-supportive-visible-safety-net-below-labeled-Automated-Testing.-The-developer-is-holding-a-laptop-d-150x150.webp 150w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-14.34.00-A-WordPress-developer-walking-a-tightrope-with-a-supportive-visible-safety-net-below-labeled-Automated-Testing.-The-developer-is-holding-a-laptop-d-768x768.webp 768w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-14.34.00-A-WordPress-developer-walking-a-tightrope-with-a-supportive-visible-safety-net-below-labeled-Automated-Testing.-The-developer-is-holding-a-laptop-d-12x12.webp 12w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-14.34.00-A-WordPress-developer-walking-a-tightrope-with-a-supportive-visible-safety-net-below-labeled-Automated-Testing.-The-developer-is-holding-a-laptop-d-96x96.webp 96w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><h3 class=\"wp-block-heading\">\u81ea\u52d5\u30c6\u30b9\u30c8\u3068\u306f\uff1f<\/h3><p>\u7c21\u5358\u306b\u8a00\u3048\u3070\u3001\u81ea\u52d5\u30c6\u30b9\u30c8\u306f\u3001\u3059\u3079\u3066\u306e\u6a5f\u80fd\u3092\u624b\u52d5\u3067\u691c\u67fb\u3059\u308b\u3053\u3068\u306a\u304f\u3001\u3042\u306a\u305f\u304c\u66f8\u3044\u305f\u30b3\u30fc\u30c9\u304c\u610f\u56f3\u3057\u305f\u3068\u304a\u308a\u306b\u52d5\u4f5c\u3059\u308b\u3053\u3068\u3092\u4fdd\u8a3c\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u3055\u307e\u3056\u307e\u306a\u5074\u9762\u3092\u691c\u8a3c\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3059\u3002\u3053\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u306f\u6700\u65b0\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u5f8c\u3082\u52d5\u4f5c\u3057\u307e\u3059\u304b\uff1f\u30c6\u30fc\u30de\u306e\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u306f\u6b63\u3057\u304f\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3055\u308c\u3066\u3044\u307e\u3059\u304b\uff1f\u81ea\u52d5\u30c6\u30b9\u30c8\u306f\u3001\u958b\u767a\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u306e\u65e9\u3044\u6bb5\u968e\u3067\u6f5c\u5728\u7684\u306a\u554f\u984c\u3092\u767a\u898b\u3059\u308b\u306e\u306b\u5f79\u7acb\u3061\u3001\u30d0\u30b0\u4fee\u6b63\u3084\u30c7\u30d0\u30c3\u30b0\u306b\u304b\u304b\u308b\u6570\u3048\u5207\u308c\u306a\u3044\u307b\u3069\u306e\u6642\u9593\u3092\u7bc0\u7d04\u3057\u307e\u3059\u3002<\/p><p>WordPress \u306e\u81ea\u52d5\u30c6\u30b9\u30c8\u306b\u306f\u3001\u5358\u4f53\u30c6\u30b9\u30c8\u3001\u7d71\u5408\u30c6\u30b9\u30c8\u3001\u3055\u3089\u306b\u306f\u5c0f\u3055\u306a\u30ed\u30b8\u30c3\u30af\u306e\u65ad\u7247\u304b\u3089\u5b8c\u5168\u306b\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3055\u308c\u305f\u30da\u30fc\u30b8\u307e\u3067\u3092\u30ab\u30d0\u30fc\u3059\u308b\u30a8\u30f3\u30c9\u30c4\u30fc\u30a8\u30f3\u30c9\u306e\u30c6\u30b9\u30c8\u307e\u3067\u542b\u307e\u308c\u307e\u3059\u3002\u81ea\u52d5\u30c6\u30b9\u30c8\u3092 WordPress \u306e\u958b\u767a\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u306b\u7d71\u5408\u3059\u308b\u65b9\u6cd5\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p><figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-14.30.53-A-developer-working-with-automated-testing-tools-for-WordPress.-The-developer-is-sitting-at-a-desk-surrounded-by-screens-showing-PHPUnit-Cypress-and.webp\" alt=\"\" class=\"wp-image-3300\" srcset=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-14.30.53-A-developer-working-with-automated-testing-tools-for-WordPress.-The-developer-is-sitting-at-a-desk-surrounded-by-screens-showing-PHPUnit-Cypress-and.webp 1024w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-14.30.53-A-developer-working-with-automated-testing-tools-for-WordPress.-The-developer-is-sitting-at-a-desk-surrounded-by-screens-showing-PHPUnit-Cypress-and-600x600.webp 600w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-14.30.53-A-developer-working-with-automated-testing-tools-for-WordPress.-The-developer-is-sitting-at-a-desk-surrounded-by-screens-showing-PHPUnit-Cypress-and-100x100.webp 100w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-14.30.53-A-developer-working-with-automated-testing-tools-for-WordPress.-The-developer-is-sitting-at-a-desk-surrounded-by-screens-showing-PHPUnit-Cypress-and-300x300.webp 300w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-14.30.53-A-developer-working-with-automated-testing-tools-for-WordPress.-The-developer-is-sitting-at-a-desk-surrounded-by-screens-showing-PHPUnit-Cypress-and-150x150.webp 150w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-14.30.53-A-developer-working-with-automated-testing-tools-for-WordPress.-The-developer-is-sitting-at-a-desk-surrounded-by-screens-showing-PHPUnit-Cypress-and-768x768.webp 768w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-14.30.53-A-developer-working-with-automated-testing-tools-for-WordPress.-The-developer-is-sitting-at-a-desk-surrounded-by-screens-showing-PHPUnit-Cypress-and-12x12.webp 12w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-14.30.53-A-developer-working-with-automated-testing-tools-for-WordPress.-The-developer-is-sitting-at-a-desk-surrounded-by-screens-showing-PHPUnit-Cypress-and-96x96.webp 96w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><h3 class=\"wp-block-heading\">\u74b0\u5883\u306e\u8a2d\u5b9a<\/h3><p>\u307e\u305a\u3001\u9069\u5207\u306a\u74b0\u5883\u304c\u5fc5\u8981\u3067\u3059\u3002PHPUnit \u306f WordPress \u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3084\u30c6\u30fc\u30de\u306e\u4e2d\u6838\u3092\u306a\u3059 PHP \u30b3\u30fc\u30c9\u3092\u30c6\u30b9\u30c8\u3059\u308b\u305f\u3081\u306b\u7279\u5225\u306b\u8a2d\u8a08\u3055\u308c\u3066\u3044\u308b\u304b\u3089\u3067\u3059\u3002PHPUnit \u306f\u3001WordPress \u30d7\u30e9\u30b0\u30a4\u30f3\u3084\u30c6\u30fc\u30de\u306e\u4e2d\u6838\u3092\u306a\u3059 PHP \u30b3\u30fc\u30c9\u306e\u30c6\u30b9\u30c8\u306b\u7279\u5316\u3057\u3066\u8a2d\u8a08\u3055\u308c\u3066\u3044\u308b\u304b\u3089\u3067\u3059\u3002PHPUnit \u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u958b\u767a\u8005\u306f\u500b\u3005\u306e\u95a2\u6570\u3092\u5206\u96e2\u3057\u3066\u305d\u306e\u6319\u52d5\u3092\u7ba1\u7406\u3055\u308c\u305f\u74b0\u5883\u3067\u691c\u8a3c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002WordPress\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3067\u81ea\u52d5\u30c6\u30b9\u30c8\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306e\u4e00\u822c\u7684\u306a\u30c4\u30fc\u30eb\u306f <strong>PHPUnit<\/strong>.PHPUnit \u306f\u3001WordPress \u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3084\u30c6\u30fc\u30de\u306e\u69cb\u6210\u8981\u7d20\u3067\u3042\u308b PHP \u30b3\u30fc\u30c9\u306e\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u306b\u6700\u9069\u3067\u3059\u3002\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u306b\u5fc5\u8981\u306a\u3082\u306e\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\uff1a<\/p><ul class=\"wp-block-list\"><li><strong>PHPUnit\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/strong>:PHPUnit \u306f Composer \u3092\u4f7f\u3063\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\uff1a<\/li><\/ul><p>                 <code>composer require --dev phpunit\/phpunit<\/code><\/p><ul class=\"wp-block-list\"><li><strong>WordPress\u30c6\u30b9\u30c8\u30b9\u30a4\u30fc\u30c8\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<\/strong>:WordPress testing library\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u30ed\u30fc\u30ab\u30eb\u3067\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3092\u60f3\u5b9a\u3057\u305f\u7c21\u6613\u7248\u3067\u3059\uff1a<\/li><\/ul><p>                 <code>bash bin\/install-wp-tests.sh wordpress_test_dbroot 'password' localhost latest<\/code><\/p><figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/02c4875e-fbbf-4783-8aae-adbb23947c4f.webp\" alt=\"\" class=\"wp-image-3306\" srcset=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/02c4875e-fbbf-4783-8aae-adbb23947c4f.webp 1024w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/02c4875e-fbbf-4783-8aae-adbb23947c4f-600x600.webp 600w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/02c4875e-fbbf-4783-8aae-adbb23947c4f-100x100.webp 100w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/02c4875e-fbbf-4783-8aae-adbb23947c4f-300x300.webp 300w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/02c4875e-fbbf-4783-8aae-adbb23947c4f-150x150.webp 150w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/02c4875e-fbbf-4783-8aae-adbb23947c4f-768x768.webp 768w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/02c4875e-fbbf-4783-8aae-adbb23947c4f-12x12.webp 12w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/02c4875e-fbbf-4783-8aae-adbb23947c4f-96x96.webp 96w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><p>\u30d7\u30ec\u30fc\u30b9\u30db\u30eb\u30c0\u3092\u5b9f\u969b\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u8a8d\u8a3c\u60c5\u5831\u306b\u7f6e\u304d\u63db\u3048\u307e\u3059\u3002\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u5f37\u5316\u3059\u308b\u305f\u3081\u306b\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u76f4\u63a5\u6a5f\u5bc6\u60c5\u5831\u3092\u30cf\u30fc\u30c9\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3059\u308b\u306e\u306f\u907f\u3051\u307e\u3057\u3087\u3046\u3002\u4ee3\u308f\u308a\u306b\u3001\u74b0\u5883\u5909\u6570\u3092\u4f7f\u7528\u3059\u308b\u304b\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u3067\u8ffd\u8de1\u3055\u308c\u306a\u3044\u5b89\u5168\u306a\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3092\u691c\u8a0e\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p><h3 class=\"wp-block-heading\">\u7c21\u5358\u306a\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u306e\u66f8\u304d\u65b9<\/h3><p>\u30ab\u30b9\u30bf\u30e0\u95a2\u6570\u306e\u7c21\u5358\u306a\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u3092\u4f5c\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u306f\u3001\u95a2\u6570\u3084\u30e1\u30bd\u30c3\u30c9\u306e\u3088\u3046\u306a\u500b\u3005\u306e\u30b3\u30fc\u30c9\u306e\u65ad\u7247\u304c\u3001\u5206\u96e2\u3055\u308c\u305f\u72b6\u614b\u3067\u6b63\u3057\u304f\u52d5\u4f5c\u3059\u308b\u3053\u3068\u3092\u691c\u8a3c\u3059\u308b\u305f\u3081\u306b\u8a2d\u8a08\u3055\u308c\u307e\u3059\u3002\u8907\u6570\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u304c\u5354\u8abf\u3057\u3066\u52d5\u4f5c\u3059\u308b\u3053\u3068\u3092\u4fdd\u8a3c\u3059\u308b\u7d71\u5408\u30c6\u30b9\u30c8\u3084\u3001 \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u6700\u521d\u304b\u3089\u6700\u5f8c\u307e\u3067\u306e\u30d5\u30ed\u30fc\u5168\u4f53\u3092\u30c6\u30b9\u30c8\u3059\u308b\u30a8\u30f3\u30c9\u30c4\u30fc\u30a8\u30f3\u30c9\u30c6\u30b9\u30c8\u3068\u306f\u7570\u306a\u308a\u307e\u3059\u3002\u3042\u306a\u305f\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u306b calculate_discount() \u3068\u3044\u3046\u95a2\u6570\u304c\u3042\u308b\u3068\u3057\u307e\u3057\u3087\u3046\uff1a<\/p><figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"494\" src=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/screenshot-1024x494.png\" alt=\"\" class=\"wp-image-3303\" style=\"width:839px;height:auto\" srcset=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/screenshot-1024x494.png 1024w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/screenshot-600x289.png 600w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/screenshot-300x145.png 300w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/screenshot-768x370.png 768w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/screenshot-1536x741.png 1536w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/screenshot-2048x988.png 2048w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/screenshot-18x9.png 18w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/screenshot-150x72.png 150w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><p>\u3053\u306e\u95a2\u6570\u306e\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u3092\u66f8\u304f\u306b\u306f\u3001tests \u30d5\u30a9\u30eb\u30c0\u306e\u4e0b\u306b\u65b0\u3057\u3044\u30c6\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u305d\u306e\u4f8b\u3067\u3059\uff1a<\/p><pre class=\"wp-block-code\"><code>\/\/ \u30d5\u30a1\u30a4\u30eb: my-plugin\/tests\/test-functions.php\nPHPUnitFramework \u3092\u4f7f\u7528\u3057\u307e\u3059\uff1b\n\n\u30af\u30e9\u30b9 FunctionsTest extends TestCase {\n    public function test_calculate_discount() {\n        require_once dirname(__FILE__) .'\/..\/includes\/functions.php'\uff1b\n\n        $result = calculate_discount(100, 20)\uff1b\n        $this-&gt;assertEquals(80, $result, '20% discount on $100 should return $80')\uff1b\n    }\n\n    public function test_invalid_discount() { $this-&gt;assert_invalid_discount(){\u3002\n        $this-&gt;expectException(InvalidArgumentException::class)\uff1b\n        calculate_discount(100, -10)\uff1b\n    }\n}<\/code><\/pre><h3 class=\"wp-block-heading\">\u30c6\u30b9\u30c8\u306e\u5b9f\u65bd<\/h3><p>\u30c6\u30b9\u30c8\u3092\u66f8\u3044\u305f\u3089\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3067\u5b9f\u884c\u3067\u304d\u307e\u3059\uff1a<\/p><p><code>\u30d9\u30f3\u30c0\/bin\/phpunit<\/code><\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-15.20.52-An-illustration-of-a-developer-sitting-at-a-desk-working-on-writing-unit-tests-for-a-WordPress-plugin.-The-developers-screen-shows-code-similar-to-P.webp\" alt=\"\" class=\"wp-image-3308\" srcset=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-15.20.52-An-illustration-of-a-developer-sitting-at-a-desk-working-on-writing-unit-tests-for-a-WordPress-plugin.-The-developers-screen-shows-code-similar-to-P.webp 1024w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-15.20.52-An-illustration-of-a-developer-sitting-at-a-desk-working-on-writing-unit-tests-for-a-WordPress-plugin.-The-developers-screen-shows-code-similar-to-P-600x600.webp 600w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-15.20.52-An-illustration-of-a-developer-sitting-at-a-desk-working-on-writing-unit-tests-for-a-WordPress-plugin.-The-developers-screen-shows-code-similar-to-P-100x100.webp 100w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-15.20.52-An-illustration-of-a-developer-sitting-at-a-desk-working-on-writing-unit-tests-for-a-WordPress-plugin.-The-developers-screen-shows-code-similar-to-P-300x300.webp 300w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-15.20.52-An-illustration-of-a-developer-sitting-at-a-desk-working-on-writing-unit-tests-for-a-WordPress-plugin.-The-developers-screen-shows-code-similar-to-P-150x150.webp 150w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-15.20.52-An-illustration-of-a-developer-sitting-at-a-desk-working-on-writing-unit-tests-for-a-WordPress-plugin.-The-developers-screen-shows-code-similar-to-P-768x768.webp 768w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-15.20.52-An-illustration-of-a-developer-sitting-at-a-desk-working-on-writing-unit-tests-for-a-WordPress-plugin.-The-developers-screen-shows-code-similar-to-P-12x12.webp 12w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-15.20.52-An-illustration-of-a-developer-sitting-at-a-desk-working-on-writing-unit-tests-for-a-WordPress-plugin.-The-developers-screen-shows-code-similar-to-P-96x96.webp 96w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><h3 class=\"wp-block-heading\">\u30b5\u30a4\u30d7\u30ec\u30b9\u306b\u3088\u308b\u30a8\u30f3\u30c9\u30c4\u30fc\u30a8\u30f3\u30c9\u30fb\u30c6\u30b9\u30c8\u306e\u5229\u7528<\/h3><p>\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u306f\u7d20\u6674\u3089\u3057\u3044\u51fa\u767a\u70b9\u3067\u3059\u304c\u3001\u8907\u96d1\u306a WordPress \u30b5\u30a4\u30c8\u3067\u306f\u3001\u30b5\u30a4\u30c8\u306e\u5168\u6a5f\u80fd\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3053\u3068\u3082\u5fc5\u8981\u3067\u3059\u3002\u5358\u4f53\u30c6\u30b9\u30c8\u306f\u500b\u3005\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u500b\u5225\u306b\u30c6\u30b9\u30c8\u3059\u308b\u3053\u3068\u306b\u91cd\u70b9\u3092\u7f6e\u304d\u307e\u3059\u304c\u3001\u7d71\u5408\u30c6\u30b9\u30c8\u306f\u7570\u306a\u308b\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u671f\u5f85\u901a\u308a\u306b\u9023\u643a\u3057\u3066\u52d5\u4f5c\u3059\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u4e00\u65b9\u3001\u30a8\u30f3\u30c9\u30c4\u30fc\u30a8\u30f3\u30c9\u30c6\u30b9\u30c8\u306f\u5b9f\u969b\u306e\u30e6\u30fc\u30b6\u30fc\u30b7\u30ca\u30ea\u30aa\u3092\u30b7\u30df\u30e5\u30ec\u30fc\u30c8\u3057\u3001\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u304b\u3089\u30e6\u30fc\u30b6\u30fc\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u307e\u3067\u3001\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u304c\u610f\u56f3\u3057\u305f\u3068\u304a\u308a\u306b\u52d5\u4f5c\u3059\u308b\u3053\u3068\u3092\u691c\u8a3c\u3057\u307e\u3059\u3002\u305d\u3053\u3067 <strong>\u30b5\u30a4\u30d7\u30ec\u30b9<\/strong> \u304c\u5165\u3063\u3066\u304d\u307e\u3059\u3002Cypress\u306fJavaScript\u30d9\u30fc\u30b9\u306e\u30a8\u30f3\u30c9\u30c4\u30fc\u30a8\u30f3\u30c9\u306e\u30c6\u30b9\u30c8\u30c4\u30fc\u30eb\u3067\u3001WordPress\u3068\u3046\u307e\u304f\u9023\u52d5\u3057\u3001\u5b9f\u969b\u306e\u30a6\u30a7\u30d6\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3068\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u3084\u308a\u3068\u308a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-15.25.58-An-illustration-of-a-WordPress-testing-process-showing-unit-testing-integration-testing-and-end-to-end-testing.-The-scene-depicts-a-developer-surro.webp\" alt=\"\" class=\"wp-image-3309\" srcset=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-15.25.58-An-illustration-of-a-WordPress-testing-process-showing-unit-testing-integration-testing-and-end-to-end-testing.-The-scene-depicts-a-developer-surro.webp 1024w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-15.25.58-An-illustration-of-a-WordPress-testing-process-showing-unit-testing-integration-testing-and-end-to-end-testing.-The-scene-depicts-a-developer-surro-600x600.webp 600w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-15.25.58-An-illustration-of-a-WordPress-testing-process-showing-unit-testing-integration-testing-and-end-to-end-testing.-The-scene-depicts-a-developer-surro-100x100.webp 100w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-15.25.58-An-illustration-of-a-WordPress-testing-process-showing-unit-testing-integration-testing-and-end-to-end-testing.-The-scene-depicts-a-developer-surro-300x300.webp 300w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-15.25.58-An-illustration-of-a-WordPress-testing-process-showing-unit-testing-integration-testing-and-end-to-end-testing.-The-scene-depicts-a-developer-surro-150x150.webp 150w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-15.25.58-An-illustration-of-a-WordPress-testing-process-showing-unit-testing-integration-testing-and-end-to-end-testing.-The-scene-depicts-a-developer-surro-768x768.webp 768w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-15.25.58-An-illustration-of-a-WordPress-testing-process-showing-unit-testing-integration-testing-and-end-to-end-testing.-The-scene-depicts-a-developer-surro-12x12.webp 12w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-15.25.58-An-illustration-of-a-WordPress-testing-process-showing-unit-testing-integration-testing-and-end-to-end-testing.-The-scene-depicts-a-developer-surro-96x96.webp 96w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><p>\u307e\u305a\u3001\u958b\u767a\u74b0\u5883\u306bCypress\u3092\u8ffd\u52a0\u3057\u307e\u3059\uff1a<\/p><p><code>npm install cypress --save-dev<\/code><\/p><p>\u6b21\u306b\u3001WordPress\u306e\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u304c\u6b63\u3057\u304f\u8aad\u307f\u8fbc\u307e\u308c\u308b\u304b\u3069\u3046\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u7c21\u5358\u306aCypress\u30c6\u30b9\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\uff1a<\/p><pre class=\"wp-block-code\"><code>\/\/ \u30d5\u30a1\u30a4\u30eb\uff1acypress\/integration\/homepage.spec.js\ndescribe('WordPress\u306e\u30db\u30fc\u30e0\u30da\u30fc\u30b8', () =&gt; {\n    it('\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u3092\u8aad\u307f\u8fbc\u3080', () =&gt; {\n        cy.visit('http:\/\/localhost:8000')\uff1b\n        cy.contains('Welcome to WordPress').should('be.visible')\uff1b\n    });\n});<\/code><\/pre><p>\u3067\u30b5\u30a4\u30d7\u30ec\u30b9\u3092\u8d70\u3089\u305b\u307e\u3059\uff1a<\/p><p><code>NPX\u30b5\u30a4\u30d7\u30ec\u30b9\u30aa\u30fc\u30d7\u30f3<\/code><\/p><h3 class=\"wp-block-heading\">CI\/CD\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u3078\u306e\u30c6\u30b9\u30c8\u306e\u7d71\u5408<\/h3><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-15.25.58-An-illustration-of-a-WordPress-testing-process-showing-unit-testing-integration-testing-and-end-to-end-testing.-The-scene-depicts-a-developer-surro-1.webp\" alt=\"\" class=\"wp-image-3311\" srcset=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-15.25.58-An-illustration-of-a-WordPress-testing-process-showing-unit-testing-integration-testing-and-end-to-end-testing.-The-scene-depicts-a-developer-surro-1.webp 1024w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-15.25.58-An-illustration-of-a-WordPress-testing-process-showing-unit-testing-integration-testing-and-end-to-end-testing.-The-scene-depicts-a-developer-surro-1-600x600.webp 600w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-15.25.58-An-illustration-of-a-WordPress-testing-process-showing-unit-testing-integration-testing-and-end-to-end-testing.-The-scene-depicts-a-developer-surro-1-100x100.webp 100w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-15.25.58-An-illustration-of-a-WordPress-testing-process-showing-unit-testing-integration-testing-and-end-to-end-testing.-The-scene-depicts-a-developer-surro-1-300x300.webp 300w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-15.25.58-An-illustration-of-a-WordPress-testing-process-showing-unit-testing-integration-testing-and-end-to-end-testing.-The-scene-depicts-a-developer-surro-1-150x150.webp 150w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-15.25.58-An-illustration-of-a-WordPress-testing-process-showing-unit-testing-integration-testing-and-end-to-end-testing.-The-scene-depicts-a-developer-surro-1-768x768.webp 768w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-15.25.58-An-illustration-of-a-WordPress-testing-process-showing-unit-testing-integration-testing-and-end-to-end-testing.-The-scene-depicts-a-developer-surro-1-12x12.webp 12w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-15.25.58-An-illustration-of-a-WordPress-testing-process-showing-unit-testing-integration-testing-and-end-to-end-testing.-The-scene-depicts-a-developer-surro-1-96x96.webp 96w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><p>\u81ea\u52d5\u30c6\u30b9\u30c8\u306f\u3001\u7d99\u7d9a\u7684\u30a4\u30f3\u30c6\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\/\u7d99\u7d9a\u7684\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\uff08CI\/CD\uff09\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u3068\u7d71\u5408\u3059\u308b\u3068\u6709\u76ca\u3067\u3059\u3002\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b5\u30fc\u30d3\u30b9\u304c\u3042\u308a\u307e\u3059\u3002 <strong><a href=\"https:\/\/github.com\/features\/actions\" target=\"_blank\" rel=\"noopener\">GitHub \u30a2\u30af\u30b7\u30e7\u30f3<\/a><\/strong> \u307e\u305f\u306f<a href=\"https:\/\/docs.gitlab.com\/ee\/ci\/\" data-type=\"link\" data-id=\"https:\/\/docs.gitlab.com\/ee\/ci\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\"> <strong>GitLab CI<\/strong><\/a> \u3092\u4f7f\u3046\u3068\u3001\u30b3\u30fc\u30c9\u306e\u5909\u66f4\u3092\u30d7\u30c3\u30b7\u30e5\u3059\u308b\u305f\u3073\u306b\u30c6\u30b9\u30c8\u3092\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u4ee5\u4e0b\u306b\u3001PHPUnit \u7528\u306e GitHub Actions YAML \u8a2d\u5b9a\u306e\u4f8b\u3092\u793a\u3057\u307e\u3059\u3002<\/p><pre class=\"wp-block-code\"><code># \u30d5\u30a1\u30a4\u30eb: .github\/workflows\/phpunit.yml\n\u540d\u524d: PHPUnit \u30c6\u30b9\u30c8\n\n\u3092\u5b9f\u884c\u3057\u307e\u3059\uff1a[push, pull_request] (\u30d7\u30c3\u30b7\u30e5\u3001\u30d7\u30eb\u30ea\u30af\u30a8\u30b9\u30c8)\n\n\u30b8\u30e7\u30d6\u3092\u5b9f\u884c\u3057\u307e\u3059\uff1a\n  test\uff1a\n    \u5b9f\u884c\u74b0\u5883: ubuntu-latest\n\n    \u30b9\u30c6\u30c3\u30d7\n    - name: \u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u30b3\u30fc\u30c9\n      \u7528\u9014: \u30a2\u30af\u30b7\u30e7\u30f3\/\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8@v2\n\n    - name: PHP\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\n      uses: shivammathur\/setup-php@v2\n      \u3092\u4f7f\u3044\u307e\u3059\uff1a\n        php-version: '8.0'\n\n    - name: \u4f9d\u5b58\u95a2\u4fc2\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\n      \u5b9f\u884c: composer install\n\n    - \u306e\u540d\u524d\u3092\u6307\u5b9a\u3057\u307e\u3059\uff1aPHPUnit \u306e\u5b9f\u884c\n      \u5b9f\u884c: vendor\/bin\/phpunit<\/code><\/pre><p>\u3053\u306e\u8a2d\u5b9a\u306f\u3001\u65b0\u3057\u3044\u30b3\u30fc\u30c9\u304c\u30d7\u30c3\u30b7\u30e5\u3055\u308c\u305f\u308a\u30d7\u30eb\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u884c\u308f\u308c\u305f\u308a\u3059\u308b\u305f\u3073\u306b\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u6bb5\u968e\u3067\u30c6\u30b9\u30c8\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3001\u65b0\u3057\u3044\u5909\u66f4\u304c\u30ea\u30b0\u30ec\u30c3\u30b7\u30e7\u30f3\u3092\u5f15\u304d\u8d77\u3053\u3057\u305f\u308a\u3001\u65e2\u5b58\u306e\u6a5f\u80fd\u3092\u58ca\u3057\u305f\u308a\u3057\u306a\u3044\u3053\u3068\u3092\u4fdd\u8a3c\u3057\u3001\u958b\u767a\u5168\u4f53\u3092\u901a\u3057\u3066\u30b3\u30fc\u30c9\u306e\u54c1\u8cea\u3092\u7dad\u6301\u3059\u308b\u306e\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u306b Cypress \u30c6\u30b9\u30c8\u3092\u542b\u3081\u308b\u3053\u3068\u3067\u3001\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306e\u30ed\u30b8\u30c3\u30af\u3068\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u306e\u30a4\u30f3\u30bf\u30e9\u30af\u30b7\u30e7\u30f3\u3092\u81ea\u52d5\u7684\u306b\u691c\u8a3c\u3067\u304d\u307e\u3059\u3002<\/p><h3 class=\"wp-block-heading\">\u7d50\u8ad6<\/h3><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-15.30.28-An-illustration-showing-a-WordPress-developer-setting-up-automated-testing.-The-developer-is-sitting-at-a-desk-with-multiple-screens-displaying-variou.webp\" alt=\"\" class=\"wp-image-3312\" srcset=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-15.30.28-An-illustration-showing-a-WordPress-developer-setting-up-automated-testing.-The-developer-is-sitting-at-a-desk-with-multiple-screens-displaying-variou.webp 1024w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-15.30.28-An-illustration-showing-a-WordPress-developer-setting-up-automated-testing.-The-developer-is-sitting-at-a-desk-with-multiple-screens-displaying-variou-600x600.webp 600w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-15.30.28-An-illustration-showing-a-WordPress-developer-setting-up-automated-testing.-The-developer-is-sitting-at-a-desk-with-multiple-screens-displaying-variou-100x100.webp 100w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-15.30.28-An-illustration-showing-a-WordPress-developer-setting-up-automated-testing.-The-developer-is-sitting-at-a-desk-with-multiple-screens-displaying-variou-300x300.webp 300w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-15.30.28-An-illustration-showing-a-WordPress-developer-setting-up-automated-testing.-The-developer-is-sitting-at-a-desk-with-multiple-screens-displaying-variou-150x150.webp 150w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-15.30.28-An-illustration-showing-a-WordPress-developer-setting-up-automated-testing.-The-developer-is-sitting-at-a-desk-with-multiple-screens-displaying-variou-768x768.webp 768w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-15.30.28-An-illustration-showing-a-WordPress-developer-setting-up-automated-testing.-The-developer-is-sitting-at-a-desk-with-multiple-screens-displaying-variou-12x12.webp 12w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-18-15.30.28-An-illustration-showing-a-WordPress-developer-setting-up-automated-testing.-The-developer-is-sitting-at-a-desk-with-multiple-screens-displaying-variou-96x96.webp 96w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><p>WordPress \u306e\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u306b\u81ea\u52d5\u30c6\u30b9\u30c8\u3092\u5c0e\u5165\u3059\u308b\u3053\u3068\u306f\u3001\u30b3\u30fc\u30c9\u306e\u54c1\u8cea\u3068\u4fe1\u983c\u6027\u3092\u5411\u4e0a\u3055\u305b\u308b\u305f\u3081\u306e\u6c7a\u5b9a\u7684\u306a\u4e00\u6b69\u3067\u3059\u3002\u3057\u304b\u3057\u3001\u958b\u767a\u8005\u306f\u30c6\u30b9\u30c8\u74b0\u5883\u306e\u8a2d\u5b9a\u3001\u4f9d\u5b58\u95a2\u4fc2\u306e\u7ba1\u7406\u3001\u8aac\u5f97\u529b\u306e\u3042\u308b\u30c6\u30b9\u30c8\u30b1\u30fc\u30b9\u306e\u4f5c\u6210\u3068\u3044\u3063\u305f\u8ab2\u984c\u306b\u76f4\u9762\u3059\u308b\u3053\u3068\u304c\u3088\u304f\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u8ab2\u984c\u3092\u514b\u670d\u3059\u308b\u306b\u306f<\/p><ul class=\"wp-block-list\"><li>\u5165\u5ff5\u306a\u8a08\u753b\u3002<\/li>\n\n<li>\u74b0\u5883\u8a2d\u5b9a\u306e\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u306e\u4f7f\u7528<\/li>\n\n<li>\u5730\u57df\u8cc7\u6e90\u3092\u6d3b\u7528\u3057\u3066\u5171\u901a\u306e\u554f\u984c\u3092\u89e3\u6c7a<\/li><\/ul><p>\u59cb\u3081\u308b\u306e\u306f\u5927\u5909\u306b\u601d\u3048\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u9577\u671f\u7684\u306a\u30e1\u30ea\u30c3\u30c8 - \u30d0\u30b0\u306e\u6e1b\u5c11\u3001\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u306e\u5bb9\u6613\u3055\u3001\u30c7\u30d7\u30ed\u30a4\u306e\u8fc5\u901f\u5316 - \u3092\u8003\u3048\u308c\u3070\u3001\u305d\u308c\u3060\u3051\u306e\u4fa1\u5024\u306f\u3042\u308a\u307e\u3059\u3002PHPUnit \u3084 Cypress \u306e\u3088\u3046\u306a\u30c4\u30fc\u30eb\u3092\u4f7f\u3048\u3070\u3001 \u3055\u307e\u3056\u307e\u306a\u5074\u9762\u304b\u3089\u30c6\u30b9\u30c8\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u3001 \u958b\u767a\u8005\u3084\u30e6\u30fc\u30b6\u30fc\u304c\u30b9\u30e0\u30fc\u30ba\u306b\u30c6\u30b9\u30c8\u3092\u884c\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002JavaScript \u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u30c6\u30b9\u30c8\u3059\u308b Jest \u3084\u3001 \u3088\u308a\u5305\u62ec\u7684\u306a\u30d6\u30e9\u30a6\u30b6\u81ea\u52d5\u5316\u30c6\u30b9\u30c8\u3092\u884c\u3046 Selenium \u306a\u3069\u306e\u30c4\u30fc\u30eb\u3082\u691c\u8a0e\u3059\u308b\u4fa1\u5024\u304c\u3042\u308a\u307e\u3059\u3002<\/p><p>\u3057\u3063\u304b\u308a\u3068\u3057\u305f\u30c6\u30b9\u30c8\u30b9\u30a4\u30fc\u30c8\u3092\u4f5c\u6210\u3057\u3001CI\/CD\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u306b\u7d71\u5408\u3059\u308b\u3053\u3068\u3067\u3001\u3059\u3079\u3066\u306e\u30b3\u30fc\u30c9\u304c\u5fb9\u5e95\u7684\u306b\u30c1\u30a7\u30c3\u30af\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u8a8d\u8b58\u3057\u306a\u304c\u3089\u3001\u81ea\u4fe1\u3092\u6301\u3063\u3066\u6a5f\u80fd\u3092\u30ea\u30ea\u30fc\u30b9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u81ea\u52d5\u30c6\u30b9\u30c8\u306f\u5358\u306a\u308b\u7a7a\u60f3\u7684\u306a\u30c4\u30fc\u30eb\u3067\u306f\u306a\u304f\u3001\u6700\u65b0\u306e\u958b\u767a\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u306e\u30d0\u30c3\u30af\u30dc\u30fc\u30f3\u306a\u306e\u3067\u3059\u3002<\/p><p><\/p>","protected":false},"excerpt":{"rendered":"<p>WordPress\u958b\u767a\u8005\u306b\u3068\u3063\u3066\u3001\u81ea\u52d5\u30c6\u30b9\u30c8\u306f\u96e3\u3057\u304f\u611f\u3058\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u81ea\u52d5\u30c6\u30b9\u30c8\u306f\u3001\u30c6\u30b9\u30c8\u5b9f\u884c\u4e2d\u306e\u30bb\u30fc\u30d5\u30c6\u30a3\u30cd\u30c3\u30c8\u306e\u3088\u3046\u306a\u3082\u306e\u3060\u3068\u8003\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>","protected":false},"author":31,"featured_media":3318,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[73],"tags":[207,298,206],"class_list":["post-3279","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-automatic-management","tag-automated-testing","tag-ci-cd-integration","tag-wordpress-development",""],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.openbyt.com\/ja\/wp-json\/wp\/v2\/posts\/3279","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.openbyt.com\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.openbyt.com\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.openbyt.com\/ja\/wp-json\/wp\/v2\/users\/31"}],"replies":[{"embeddable":true,"href":"https:\/\/www.openbyt.com\/ja\/wp-json\/wp\/v2\/comments?post=3279"}],"version-history":[{"count":9,"href":"https:\/\/www.openbyt.com\/ja\/wp-json\/wp\/v2\/posts\/3279\/revisions"}],"predecessor-version":[{"id":3323,"href":"https:\/\/www.openbyt.com\/ja\/wp-json\/wp\/v2\/posts\/3279\/revisions\/3323"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.openbyt.com\/ja\/wp-json\/wp\/v2\/media\/3318"}],"wp:attachment":[{"href":"https:\/\/www.openbyt.com\/ja\/wp-json\/wp\/v2\/media?parent=3279"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.openbyt.com\/ja\/wp-json\/wp\/v2\/categories?post=3279"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.openbyt.com\/ja\/wp-json\/wp\/v2\/tags?post=3279"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}