$30 off During Our Annual Pro Sale. View Details »

Behat en 2022

Behat en 2022

Un talk donné pour l'antenne lyonnaisse de l'AFUP (https://afup.org).

Alexandre Balmes

November 07, 2022
Tweet

More Decks by Alexandre Balmes

Other Decks in Programming

Transcript

  1. BEHAT EN 2022

  2. ALEXANDRE @POCKYSTAR@TWITTER.COM - @POCKY@MASTODON.ONLINE C{E,T}O {VANOIX,AKAWAKA}

  3. BEHAVIOR DRIIIIIIIVEN DEVELOPMENT

  4. BEHAT 2010 - KONSTANTIN KUDRYASHOV 
 VERSION 3.8.1

  5. ECRIT EN PHP COMPOSER REQUIRE --DEV BEHAT/BEHAT 
 VENDOR/BIN/BEHAT -V

  6. VENDOR/BIN/BEHAT --INIT FEATURES/BOOTSTRAP/FEATURECONTEXT.PHP

  7. GHERKIN BUSINESS READABLE 
 DOMAIN SPECIFIC LANGUAGE

  8. FEATURE: SOME TERSE YET DESCRIPTIVE TEXT OF WHAT IS DESIRED

    IN ORDER TO REALIZE A NAMED BUSINESS VALUE AS AN EXPLICIT SYSTEM ACTOR I WANT TO GAIN SOME BENEFICIAL OUTCOME WHICH FURTHERS THE GOAL SCENARIO: SOME DETERMINABLE BUSINESS SITUATION GIVEN SOME PRECONDITION AND SOME OTHER PRECONDITION WHEN SOME ACTION BY THE ACTOR AND SOME OTHER ACTION AND YET ANOTHER ACTION THEN SOME TESTABLE OUTCOME IS ACHIEVED AND SOMETHING ELSE WE CAN CHECK HAPPENS TOO
  9. EXAMPLES, OUTLINE, BACKGROUNDS, TAGS, ...

  10. MAIS RIEN DE NOUVEAU

  11. 2022

  12. 1. BEHAT ET CONTENU

  13. NE PAS CIBLER BÊTEMENT

  14. TWIG EXTENSION

  15. 2. PANTHER

  16. DMORE/BEHAT- CHROME-EXTENSION NO MOAR

  17. ROBERTFAUSK/ BEHAT-PANTHER- EXTENSION MOAR

  18. 3. HOOK

  19. {BEFORE,AFTER} {SUITE,FEATURE,SCE NARIO} https://behat.org/en/latest/user_guide/context/hooks.html

  20. BONUS POINT 
 /** 
 * @BeforeScenario @database 
 **/

  21. 4. TRANSFORM MON CRUSH BEHAT

  22. 5. EXTENSIONS UTILES

  23. MINK DEBUG https://github.com/FriendsOfBehat/MinkDebugExtension

  24. VARIADIC https://github.com/FriendsOfBehat/VariadicExtension

  25. PAGE OBJECT https://github.com/FriendsOfBehat/PageObjectExtension

  26. 6. DDD/CLEAN/HEXA

  27. APPLICATION DOMAIN INFRASTRUCTURE USER INTERFACE

  28. FRONT BACK WORKER CLI BEHAT DOMAIN INFRASTRUCTURE GATEWAY REQUEST RESPONSE

  29. SYLIUS ❤ BEHAT

  30. MERCI I ❤ YOU

  31. MERCI I ❤ YOU