{"id":994,"date":"2019-10-18T10:42:05","date_gmt":"2019-10-18T10:42:05","guid":{"rendered":"https:\/\/2019.milano.wordcamp.org\/?post_type=wcb_session&#038;p=994"},"modified":"2019-11-12T10:37:28","modified_gmt":"2019-11-12T10:37:28","slug":"acceptance-testing-in-wp-lets-automate-the-visual-checks-and-regression-testing","status":"publish","type":"wcb_session","link":"https:\/\/milano.wordcamp.org\/2019\/session\/acceptance-testing-in-wp-lets-automate-the-visual-checks-and-regression-testing\/","title":{"rendered":"Acceptance testing in WP &#8211; let\u2019s automate the visual checks and regression testing (EN)"},"content":{"rendered":"\n<p>Believe it or not, there&#8217;s no single developer that does not test her\/his code.&nbsp;&nbsp;Everyone does, all the time, maybe not efficiently.<br>Everyone makes an edit to her\/his project code, reload the page, and check if the result is the expected one in visual and behavioral terms.<br>Automated acceptance testing would remove the error-prone and slow manual procedure to make the validation cycle faster and, ideally, automatic.<br>In this workshop, we&#8217;re creating a simple plugin and walk through the set up of wp-browser (a set of Codeception modules and extensions dedicated to WordPress), its first run, the first automated acceptance test, and a visual regression test.<\/p>\n\n\n\n<p>You must have the following to attend the workshop:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>a laptop to work;<\/li><li>one of the following working local development environments: VVV, MAMP, WAMP, or Local by Flywheel; you are being provided with guides and help for these, but, with some effort, other local development environments can work too;<\/li><li>good knowledge of PHP.<\/li><\/ul>\n\n\n\n<p>Per prenotare il tuo posto, <strong><a href=\"http:\/\/tiny.cc\/5vmffz\">compila il form<\/a><\/strong>. \/ To book your place, <a href=\"http:\/\/tiny.cc\/5vmffz\"><strong>fill in the form<\/strong><\/a>.<\/p>\n\n\n\n<p><strong>Informazioni sullo svolgimento:<\/strong> <br>Numero di partecipanti massimo: 30<br>\u00c8 necessario portare un laptop con installato e funzionante Composer ed uno di VVV\/MAMP\/WAMP\/Local by Flywheel.<br>Il workshop richiede una conoscenza media di PHP.<br>Il workshop sar\u00e0 in inglese, a meno che tutti i partecipanti non parlino italiano.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Believe it or not, there&#8217;s no single developer that does not test her\/his code.&nbsp;&nbsp;Everyone does, all the time, maybe not efficiently.Everyone makes an edit to her\/his project code, reload the page, and check if the result is the expected one in visual and behavioral terms.Automated acceptance testing would remove the error-prone and slow manual procedure &hellip; <a href=\"https:\/\/milano.wordcamp.org\/2019\/session\/acceptance-testing-in-wp-lets-automate-the-visual-checks-and-regression-testing\/\" class=\"more-link\">Leggi tutto<span class=\"screen-reader-text\"> &#8220;Acceptance testing in WP &#8211; let\u2019s automate the visual checks and regression testing (EN)&#8221;<\/span><\/a><\/p>\n","protected":false},"author":13208207,"featured_media":1179,"template":"","meta":{"jetpack_post_was_ever_published":false,"_wcpt_session_time":1574526600,"_wcpt_session_duration":3000,"_wcpt_session_type":"session","_wcpt_session_slides":"","_wcpt_session_video":"","_wcpt_speaker_id":[699],"footnotes":""},"session_track":[1296143],"session_category":[],"class_list":["post-994","wcb_session","type-wcb_session","status-publish","has-post-thumbnail","hentry","wcb_track-ws"],"jetpack_shortlink":"https:\/\/wp.me\/paQajJ-g2","jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"session_date_time":{"date":"23 Novembre 2019","time":"16:30"},"session_speakers":[{"id":"699","slug":"luca-tumedei","name":"Luca Tumedei","link":"https:\/\/milano.wordcamp.org\/2019\/speaker\/luca-tumedei\/"}],"session_cats_rendered":null,"_links":{"self":[{"href":"https:\/\/milano.wordcamp.org\/2019\/wp-json\/wp\/v2\/sessions\/994","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/milano.wordcamp.org\/2019\/wp-json\/wp\/v2\/sessions"}],"about":[{"href":"https:\/\/milano.wordcamp.org\/2019\/wp-json\/wp\/v2\/types\/wcb_session"}],"version-history":[{"count":6,"href":"https:\/\/milano.wordcamp.org\/2019\/wp-json\/wp\/v2\/sessions\/994\/revisions"}],"predecessor-version":[{"id":1589,"href":"https:\/\/milano.wordcamp.org\/2019\/wp-json\/wp\/v2\/sessions\/994\/revisions\/1589"}],"speakers":[{"embeddable":true,"href":"https:\/\/milano.wordcamp.org\/2019\/wp-json\/wp\/v2\/speakers\/699"}],"author":[{"embeddable":true,"href":"https:\/\/milano.wordcamp.org\/2019\/wp-json\/wporg\/v1\/users\/lucatume"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/milano.wordcamp.org\/2019\/wp-json\/wp\/v2\/media\/1179"}],"wp:attachment":[{"href":"https:\/\/milano.wordcamp.org\/2019\/wp-json\/wp\/v2\/media?parent=994"}],"wp:term":[{"taxonomy":"wcb_track","embeddable":true,"href":"https:\/\/milano.wordcamp.org\/2019\/wp-json\/wp\/v2\/session_track?post=994"},{"taxonomy":"wcb_session_category","embeddable":true,"href":"https:\/\/milano.wordcamp.org\/2019\/wp-json\/wp\/v2\/session_category?post=994"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}