All Projects → lucatume → Wp Browser

lucatume / Wp Browser

Licence: mit
Easy acceptance, functional, integration and unit testing for WordPress plugins, themes and sites using Codeception.

Projects that are alternatives of or similar to Wp Browser

Qtranslate Xt
qTranslate-XT (eXTended) - reviving qTranslate-X. A new community-driven plugin soon. GUTENBERG initial support now available! Built-in modules for WooCommerce, ACF, All in one SEO, Events Made Easy, Gravity Forms.
Stars: ✭ 366 (-6.39%)
Mutual labels:  wordpress
Shellspec
A full-featured BDD unit testing framework for bash, ksh, zsh, dash and all POSIX shells
Stars: ✭ 375 (-4.09%)
Mutual labels:  tdd
Gatsby Starter Wordpress
A GatsbyJS starter template that leverages the WordPress API, ACF and more
Stars: ✭ 387 (-1.02%)
Mutual labels:  wordpress
Laps
Light WordPress profiler.
Stars: ✭ 368 (-5.88%)
Mutual labels:  wordpress
Ava
Node.js test runner that lets you develop with confidence 🚀
Stars: ✭ 19,458 (+4876.47%)
Mutual labels:  tdd
Pwa Theme Woocommerce
E-commerce Progressive Web App Theme (React & Redux)
Stars: ✭ 382 (-2.3%)
Mutual labels:  wordpress
Kuhn
WordPress theme featuring CSS Grid layouts via aggressive progressive enhancement. Proof of concept to get the conversation about what CSS Grid means for WordPress themes started. Currently running live at https://mor10.com
Stars: ✭ 365 (-6.65%)
Mutual labels:  wordpress
Testfx
MSTest V2 framework and adapter
Stars: ✭ 391 (+0%)
Mutual labels:  tdd
Typerocket
TypeRocket is a highly integrated MVC WordPress framework with beautiful UI components for the modern developer.
Stars: ✭ 378 (-3.32%)
Mutual labels:  wordpress
Wp Custom Post Type Class
A PHP Class for creating Wordpress Custom Post Types easily
Stars: ✭ 386 (-1.28%)
Mutual labels:  wordpress
Themovies
🎬 A demo project for The Movie DB based on Kotlin MVVM architecture and material design & animations.
Stars: ✭ 374 (-4.35%)
Mutual labels:  tdd
Awesome Wp Speed Up
Plugins and resources to speed up and optimize your WordPress site.
Stars: ✭ 375 (-4.09%)
Mutual labels:  wordpress
Mockk
mocking library for Kotlin
Stars: ✭ 4,214 (+977.75%)
Mutual labels:  tdd
Clean Wordpress Admin
A collection of functions to clean up WordPress
Stars: ✭ 370 (-5.37%)
Mutual labels:  wordpress
Awesome Wp Developer Tools
A collection of plugins, starter themes and tools to make WordPress development easier.
Stars: ✭ 388 (-0.77%)
Mutual labels:  wordpress
Art blog
WordPress响应式免费主题,Art_Blog唯品秀博客(weipxiu.com/备用域名weipxiu.cn),开源给小伙伴免费使用,如使用过程有任何问题,在线技术支持QQ:343049466,欢迎打扰。原创不易,如喜欢,请多多打赏。演示:
Stars: ✭ 367 (-6.14%)
Mutual labels:  wordpress
Socialphish
The most complete Phishing Tool, with 32 templates +1 customizable
Stars: ✭ 378 (-3.32%)
Mutual labels:  wordpress
Beans
Beans WordPress Theme Framework. The default branch is set to development, please switch to the master branch for production.
Stars: ✭ 392 (+0.26%)
Mutual labels:  wordpress
Docker Wordpress
Wordpress Docker container using SSL Certificates with LetsEncrypt
Stars: ✭ 391 (+0%)
Mutual labels:  wordpress
Action Scheduler
A scalable, traceable job queue for background processing large queues of tasks in WordPress. Specifically designed for distribution in WordPress plugins (and themes) - no server access required.
Stars: ✭ 386 (-1.28%)
Mutual labels:  wordpress

wp-browser

CI

wp-browser provides easy acceptance, functional, integration and unit testing for WordPress plugins, themes and whole sites using Codeception.

Find out more in the documentation.

Installation and setup - the really fast version

Using Composer require wp-browser as a development dependency:

cd my-wordrpess-project
composer require --dev lucatume/wp-browser
vendor/bin/codecept init wpbrowser

Answer the questions and you will be ready to test your project. Find out more about the setup in the project documentation.

Using wp-browser with Codeception 4.0

Codeception version 4.0, while still being compatible with PHP 5.6 and wp-browser, did break its structure into discrete modules.

If you want to use wp-browser with Codeception version 4.0+ you will need to make sure you've got all the required packages.
Add the following requirements in your composer.json file, in the require-dev section:

{
  "require-dev": {
    "lucatume/wp-browser": "^2.4",
    "codeception/module-asserts": "^1.0",
    "codeception/module-phpbrowser": "^1.0",
    "codeception/module-webdriver": "^1.0",
    "codeception/module-db": "^1.0",
    "codeception/module-filesystem": "^1.0",
    "codeception/module-cli": "^1.0",
    "codeception/util-universalframework": "^1.0"
  }
}

You might not need all of them depending on the modules you use in your suites, but this will cover all the modules for this project.

Read more here.

Usage

The project provides a number of modules to ease the testing of WordPress projects; you can find out more in the modules section of the documentation.
Here's a quick example acceptance test you can write:

// tests/acceptance/PrivatePostsCept.php
$I->haveManyPostsInDatabase(3, ['post_title' => 'Test post {{n}}', 'post_status' => 'private']);

$I->loginAs('subscriber', 'secret');
$I->amOnPage('/');
$I->see('Nothing found');

$I->loginAs('editor', 'secret');
$I->amOnPage('/');
$I->see('Test post 0');
$I->see('Test post 1');
$I->see('Test post 2');

This is just a bite though, find out more in the documentation.

Current Sponsors

My sincere thanks to my sponsors: you make maintaining this project easier.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].