Behavior Driven Development and Browser Testing using Codeception

Published: 01 January 1970
on channel: MergePHP
499
12

Codeception provides PHP TESTING FOR EVERYONE by collecting and sharing best practices and solutions for testing PHP web applications. With a flexible set of included modules, tests are easy to write, easy to use, and easy to maintain. Join Alena Holligan to start writing your own tests today. We'll focus on acceptance testing with a browser, but Codeception also provides functional, unit, and API testing. We'll take a look at setting up Codeception and writing basic tests before jumping into Behavior Driven Development and the Gherkin syntax.

Behavior Driven Development (BDD) is a popular software development methodology. BDD is an extension of Test Driven Development (TDD) inspired by Agile practices. But is the added layer really worth it? The primary reason to choose BDD as your development process is to break down communication barriers between business and technical teams. BDD encourages automated testing to verify all documented features of a project from the beginning.

Narrow the idea of story BDD:

describe features in a scenario with a formal text
use examples to make abstract things concrete
implement each step of a scenario for testing
write actual code implementing the feature
By writing every feature in User Story format that is automatically executable as a test, we ensure that: businesses, developers, QAs, and managers are all on the same page. BDD encourages exploration and debate to formalize the requirements and features by writing the User Stories so everyone can understand. By making tests part of the User Story, BDD allows non-technical personnel to write (or edit) Acceptance tests. This procedure also ensures that everyone in a team knows what was developed, what was not, what was tested, and what was not.

If you write your tests in a reusable way, it can often make your tests LESS complicated. Codeception collects and shares best practices and solutions for testing PHP web applications. With a flexible set of included modules, tests are easy to write, use, and maintain. Get started today writing your first BDD test.

About Alena: For over 20 years, Alena has built technical solutions that inform decisions and solve problems across diverse industries. She enjoys both the creativity of programming and the thrill of solving a puzzle. As a leader in the community, a technical trainer, and a mom, she is passionate about providing the tools and mindset required for everyone to learn and succeed.
---
Want to present at MergePHP? Sign up to speak with the link below. Technical talks are appreciated! Make a note if it's a full-length or shorter lightning talk.

MergePHP is:

AtlantaPHP
AustinPHP
AZ PHP
BostonPHP
Kansas City PHP
PDX (Portland, OR)
San Diego PHP
SeattlePHP
UtahPHP
Vegas PHP
Vancouver PHP
Subscribe to our Channel:    / mergephp  
Follow us on Mastodon: https://phpc.social/@merge

Speaker Signups: https://mphp.io/speakers
Suggest Speakers: https://mphp.io/suggest


On this page of the site you can watch the video online Behavior Driven Development and Browser Testing using Codeception with a duration of hours minute second in good quality, which was uploaded by the user MergePHP 01 January 1970, share the link with friends and acquaintances, this video has already been watched 499 times on youtube and it was liked by 12 viewers. Enjoy your viewing!