Download presentation
Presentation is loading. Please wait.
Published byMaryann Cooper Modified over 8 years ago
1
Add Automated Testing to Your Project in an Afternoon Michael Sherron, Technical Architect
2
About Me →Michael Sherron →Drupalist, 6 years →Technical Architect, Acquia →‘Raised’ in small Drupal Shops
3
Testing protects you from fail →Most people know the benefits of Test automation →Small shops often overworked →Some clients won’t pay for it
4
What is Wraith? →Visual Regression Testing tool →Automates comparing screenshots of pages across different environments →If screenshots are different, an error is triggered →Provides nice gallery to view screenshots →Easy to implement
5
Isn’t this for theme testing? What can Wraith do? →Can crawl an entire site out of the box →Can test responsively →Will report an error if: elements are missing or broken on the page WSOD Default red error text is displayed
6
Wraith != Behat →This is an MVP testing solution. →Great for simple sites with mostly anonymous traffic. →You really should learn Behat or similar. →Doesn’t handle: Authenticated users Transaction-based tests (user signup, cart checkouts, etc)
7
… But if you have Behat, Wraith is still great! →Visual Regression testing will catch things Behat can’t. →Page elements moved/changed unexpectedly
8
Requirements →Can be run locally or on a remote server. →Root/Sudo access. →At least one production and one test environment. →Familiarity with package managers: Apt-get Homebrew →Dependencies: Ruby ImageMagick PhantomJS NodeJS NPM sudo apt-get install ruby-full
9
How to install and configure →Run `wraith setup` →Edit configs/capture.yaml →Optional: edit configs/spider.yaml
10
Unleash Ghost Army
11
Automation →Can add to test servers crontab, run nightly →Add as post-deploy shell script to Jenkins →Failures can trigger an email
12
.. But what about dynamic content? DevProd
13
Questions?.. And Many Thanks →BBC →DrupalVM →Phase 2 →Mark Sakurada, Acquia
14
References →Wraith: https://github.com/BBC-News/wraithhttps://github.com/BBC-News/wraith →Awesome Vagrant Env, DrupalVM: http://www.drupalvm.com/ http://www.drupalvm.com/ →Phase 2: http://bit.ly/1YgVCeahttp://bit.ly/1YgVCea →Mark Sakurada, Acquia
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.