Continuous Integration in my I Got Automated Testing CI + Automated Testing.pdfbehat/behat suggests...

11
I Got Automated Testing in my Continuous Integration

Transcript of Continuous Integration in my I Got Automated Testing CI + Automated Testing.pdfbehat/behat suggests...

Page 1: Continuous Integration in my I Got Automated Testing CI + Automated Testing.pdfbehat/behat suggests Installing behat/symfony2-extension (for integration with Symfony2 web framework)

I Got Automated Testing in my Continuous Integration

Page 2: Continuous Integration in my I Got Automated Testing CI + Automated Testing.pdfbehat/behat suggests Installing behat/symfony2-extension (for integration with Symfony2 web framework)

Exygy - 2

● Functional testing● Regression testing● Test-driven development● Continuous integration

Why Are We Doing This?

Page 3: Continuous Integration in my I Got Automated Testing CI + Automated Testing.pdfbehat/behat suggests Installing behat/symfony2-extension (for integration with Symfony2 web framework)

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

Page 4: Continuous Integration in my I Got Automated Testing CI + Automated Testing.pdfbehat/behat suggests Installing behat/symfony2-extension (for integration with Symfony2 web framework)

Exygy - 4

Demo Time

Page 5: Continuous Integration in my I Got Automated Testing CI + Automated Testing.pdfbehat/behat suggests Installing behat/symfony2-extension (for integration with Symfony2 web framework)

Exygy - 5

● Create test files in sites/all/tests/features

● Behat syntax: plain English

Page 6: Continuous Integration in my I Got Automated Testing CI + Automated Testing.pdfbehat/behat suggests Installing behat/symfony2-extension (for integration with Symfony2 web framework)

Exygy - 6

● Push to GitHub● Create pull request

Page 7: Continuous Integration in my I Got Automated Testing CI + Automated Testing.pdfbehat/behat suggests Installing behat/symfony2-extension (for integration with Symfony2 web framework)

Exygy - 7

Watch CI scripts run

Page 8: Continuous Integration in my I Got Automated Testing CI + Automated Testing.pdfbehat/behat suggests Installing behat/symfony2-extension (for integration with Symfony2 web framework)

Exygy - 8

Behat: where the magic happens

Page 9: Continuous Integration in my I Got Automated Testing CI + Automated Testing.pdfbehat/behat suggests Installing behat/symfony2-extension (for integration with Symfony2 web framework)

Exygy - 9

● GitHub reports tests successful

● Merge branch into master● All future pull requests

will automatically run tests

Page 10: Continuous Integration in my I Got Automated Testing CI + Automated Testing.pdfbehat/behat suggests Installing behat/symfony2-extension (for integration with Symfony2 web framework)

Exygy - 10

BONUS: Local Testing

Page 11: Continuous Integration in my I Got Automated Testing CI + Automated Testing.pdfbehat/behat suggests Installing behat/symfony2-extension (for integration with Symfony2 web framework)

11Exygy -

That’s it.