continuous integration in my i got automated testing ci + automated testing.pdfbehat/behat suggests...

Post on 27-Jun-2020

18 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

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.

top related