Mediacurrent Contrib Half Hour, 2018-11-29
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3049916. --> Reported by: [robpowell](https://www.drupal.org/user/3417529) >>> <p>Today we had a testing lab where we discussed a whole load of different topics.</p> <p>Session links<br> A library for simplifying mocking data for tests:<br> <a href="https://github.com/fzaninotto/Faker">https://github.com/fzaninotto/Faker</a></p> <p>A library for simplifying writing unit tests:<br> <a href="https://www.drupal.org/docs/8/phpunit/using-prophecy">https://www.drupal.org/docs/8/phpunit/using-prophecy</a></p> <p>Behat - a system for writing Gherkin/Cucumber --based tests on PHP projects:<br> <a href="http://behat.org/">http://behat.org/</a></p> <p>Cucumber - a multi-platform system for running tests:<br> <a href="https://cucumber.io">https://cucumber.io</a></p> <p>Documentation on using Behat with Drupal:<br> <a href="https://behat-drupal-extension.readthedocs.io/en/3.1/drupalapi.html">https://behat-drupal-extension.readthedocs.io/en/3.1/drupalapi.html</a></p> <p>Discussions around improving the Drupal testing infrastructure, and making Behat available for folks to use on contrib projects:<br> <a href="https://www.drupal.org/project/drupalci/issues/2237957">https://www.drupal.org/project/drupalci/issues/2237957</a><br> <a href="https://www.drupal.org/project/drupalci_testbot/issues/2597802">https://www.drupal.org/project/drupalci_testbot/issues/2597802</a></p> <p>Drupal Test Traits - a collection of traits to make writing Drupal tests a little easier:<br> <a href="https://gitlab.com/weitzman/drupal-test-traits">https://gitlab.com/weitzman/drupal-test-traits</a></p> <p>Use Gherkin syntax tests with JS projects via Cucumber-JS:<br> <a href="https://github.com/cucumber/cucumber-js">https://github.com/cucumber/cucumber-js</a></p> <p>BrowserTestBase is deprecated in Drupal 8 so will be removed in Drupal 9:<br> <a href="https://api.drupal.org/api/drupal/core%21modules%21simpletest%21src%21BrowserTestBase.php/class/BrowserTestBase/8.6.x">https://api.drupal.org/api/drupal/core%21modules%21simpletest%21src%21BrowserTestBase.php/class/BrowserTestBase/8.6.x</a><br> <a href="https://api.drupal.org/api/drupal/core%21tests%21Drupal%21Tests%21BrowserTestBase.php/class/BrowserTestBase/8.6.x">https://api.drupal.org/api/drupal/core%21tests%21Drupal%21Tests%21BrowserTestBase.php/class/BrowserTestBase/8.6.x</a></p> <p>A nice intro to the different types of tests available on Drupal 8:<br> <a href="https://www.drupal.org/docs/8/testing/types-of-tests-in-drupal-8">https://www.drupal.org/docs/8/testing/types-of-tests-in-drupal-8</a></p> <h3>Video recording</h3> <p><a href="https://www.youtube.com/watch?v=Vd5xxYm9m3k">https://www.youtube.com/watch?v=Vd5xxYm9m3k</a></p> > Related issue: [Issue #2237957](https://www.drupal.org/node/2237957) > Related issue: [Issue #2597802](https://www.drupal.org/node/2597802)
issue