Continuous Integration in my I Got Automated Testing CI + Automated Testing.pdfbehat/behat suggests...
Transcript of Continuous Integration in my I Got Automated Testing CI + Automated Testing.pdfbehat/behat suggests...
I Got Automated Testing in my Continuous Integration
Exygy - 2
● Functional testing● Regression testing● Test-driven development● Continuous integration
Why Are We Doing This?
3Exygy -
Script installs LAMP stack, Drupal, Behat, and Selenium on the CI server, then runs all Behat tests and reports the result.
Architecture
CircleCI
example-drupal7-circle-composer
dbdown
DrupalPantheon
sites/all/tests/features
GitHub
GitHub
Exygy - 4
Demo Time
Exygy - 5
● Create test files in sites/all/tests/features
● Behat syntax: plain English
Exygy - 6
● Push to GitHub● Create pull request
Exygy - 7
Watch CI scripts run
Exygy - 8
Behat: where the magic happens
Exygy - 9
● GitHub reports tests successful
● Merge branch into master● All future pull requests
will automatically run tests
Exygy - 10
BONUS: Local Testing
11Exygy -
That’s it.