Skip to content

Latest commit

 

History

History
164 lines (114 loc) · 10.1 KB

php-test-automation.md

File metadata and controls

164 lines (114 loc) · 10.1 KB

PHP test automation

A comprehensive curated list of PHP test automation frameworks, tools, libraries and software to help software engineers easily bootstrap test automation on PHP. Sponsored by http://sdclabs.com

Have questions\issues\problems, join the chat at https://gitter.im/atinfo/awesome-test-automation

Table of content:

Also:


xUnit frameworks

  • PHPUnit - Most known testing frameworks based on xUnit architecture. Full line coverage, pathc coverage, extended reports and even hhvm are pre-built.
  • Atoum - Lightweight PHP unit testing framework with simple report generation.
  • Infection - AST based PHP Mutation Testing Framework.

Mock frameworks

  • php-vfs - Virtual filesystem provider
  • adlawson/vfs - Another virtual filesystem provider
  • vfsStream - A stream wrapper for a virtual file system that may be helpful in unit tests to mock the real file system. It can be used with any unit test framework, like PHPUnit or SimpleTest.
  • Mockery - Objects mocking and method call assertions framework
  • Prophecy - Object mocking framework for PHP.
  • Phake - Mock php objects, test doubles and method stubs, inspired by Mockito for Java.
  • Codeception's AspectMock - AspectMock allows you to stub and mock practically anything in your PHP code.

TDD \ ATDD \ BDD

  • BDD
    • Behat - BDD framework for PHP to help you test business expectations.
    • Codeception - BDD-styled PHP testing framework; Selenium WebDriver integration, Symfony2, Laravel4, Yii, Phalcon, Zend Framework support; PageObjects and StepObjects included, BDD-style readable tests, powered by PHPUnit, API testing: REST,SOAP,XML-RPC; Facebook API testing; Data Cleanup; HTML, XML, TAP, JSON reports; CodeCoverage and Remote CodeCoverage; Parallel Execution, etc
    • phpspec - Tool which can help you write clean and working PHP code using behaviour driven development or BDD.

Code analysis

Web UI test automation

Mobile test automation

Contribute to this section

Windows UI test automation

Contribute to this section

Unix \ Linux UI test automation

Contribute to this section

MacOS UI test automation

Contribute to this section

Virtual environments

  • Vagrant - Configuration-driven virtual machines
  • Docker - Ultimate containerization tool

Performance & stress & load

Contribute to this section

Security checking

Continuous Integration

  • PHPCI - Free and open source continuous integration tool specifically designed for PHP.
  • PHP Censor - Open source self-hosted continuous integration server for PHP projects.
  • Jenkins PHP project template - The goal of this project is to provide a standard template for Jenkins jobs for PHP projects.
  • Sismo - Unlike more "advanced" Continuous Integration Servers (like Jenkins), Sismo does not try to do more than getting your code, running your tests, and send you notifications.

Reporting

  • ReportPortal.io - BeHat powerfull results management and analytics for test automation reports. Powered with Machine Learning. Real-time integration and reports, visualization of trends and statistics, custom dashboards and widgets, gives you real visibility into the state of test automation. Integral part of CI/CD with TA and Continous Testing. Server-client application, can be used for any type of automated tests. Free and OpenSourced, GitHub link.
  • Allure Framework - Allure Framework is a framework that provides rich and beautiful reports with extended possibilities like screenshot capturing. Allure provides plugins for Codeception and PHPUnit.

Documentation generation

Contribute to this section

Editors, IDE, consoles

  • PhpStorm - PHP IDE with highlighting, code analyzer, debugging features, all kinds of repositories and many others.
  • ZendStudio - PHP IDE from PHP creators' company, multiply features + different js frameworks supports.
  • NetBeans - Open source free PHP IDE.
  • Aptana - Another free IDE.

Useful libs

  • PHP CS Fixer - tool for automatic convention violations correction

Resources

Where to discover new libraries, information, tools, etc.

Websites

Other Awesome Test Automation Lists

Your contributions are always welcome!