Upgrade to Pro — share decks privately, control downloads, hide ads and more …

End to End Testing with WooCommerce

End to End Testing with WooCommerce

Introducing end to end testing with WooCommerce and other services using end to end testing along with a quick introduction into Robot Ninja - a new project being worked on by Prospress.

If you're interested in our project visit: https://robotninja.com

Matt Allan

June 08, 2017
Tweet

Other Decks in Technology

Transcript

  1. “END-TO-END TESTING IS A TECHNIQUE USED TO TEST WHETHER THE

    FLOW OF AN APPLICATION RIGHT FROM START TO FINISH IS BEHAVING AS EXPECTED WHAT IS END-TO-END TESTING? . ”
  2. > < What do end to end tests look like?

    4 MATT ALLAN - TWITTER: @mattallan_
  3. > < 01 02 03 Confidence that your store isn’t

    broken Allows you test browsers that aren’t available to you Can be scheduled and automated 04 05 06 Easy to verify your site isn’t broken Ensures more quality releases of software Saves you time Why are they important? 5 MATT ALLAN - TWITTER: @mattallan_
  4. > < They’ve began writing e2e tests and including them

    in core so they’re 100% accessible to everyone. Made them extendable for developers to build their own or contribute some tests back to core. Made sure the tests are relatively easy to setup and run yourself locally. 01 02 03 How is WooCommerce using end-to-end testing? 6 MATT ALLAN - TWITTER: @mattallan_
  5. > < They’ve began writing e2e tests and including them

    in core so they’re 100% accessible to everyone. WooCommerce made them extendable for developers to build their own or contribute some tests back to core. Made sure the tests are relatively easy to setup and run yourself locally. 01 02 03 What is WooCommerce doing with end-to-end testing? 9 MATT ALLAN - TWITTER: @mattallan_
  6. > < They’ve began writing e2e tests and including them

    in core so they’re 100% accessible to everyone. Made them extendable for developers to build their own or contribute some tests back to core. Made sure the tests are relatively easy to setup and run yourself locally. 01 02 03 How is WooCommerce using end-to-end testing? 11 MATT ALLAN - TWITTER: @mattallan_
  7. > < 03 Things you need: • local copy of

    WC3.0+ (must also have the dev files) • (recommended) have a default theme installed • import WooCommerce dummy data • install modules via command line `npm install` • create your e2e test configuration file 12
  8. > < Limitations with Woo E2E 14 • Uses/expects predefined

    WC Dummy Data • Requires knowledge of installing and updating
 node modules • Currently only support manual payment
 gateways (BAQ, Cheque, etc) • Recommends using a default WP theme • Requires learning a new language (not PHP) • Cannot be automated MATT ALLAN - TWITTER: @mattallan_
  9. > < 16 Codeception MATT ALLAN - TWITTER: @mattallan_ -

    codeception.com/ - codeception.com/for/wordpress
  10. > < 18 Codeception MATT ALLAN - TWITTER: @mattallan_ -

    http://codeception.com/ - http://codeception.com/for/wordpress