GithubHelp home page GithubHelp logo

nasabikram / behat-wp-theme-review Goto Github PK

View Code? Open in Web Editor NEW

This project forked from miya0001/behat-wp-theme-review

0.0 1.0 0.0 210 KB

Behat based automated theme review

Shell 2.54% JavaScript 11.49% PHP 21.87% Gherkin 64.10%

behat-wp-theme-review's Introduction

Theme review framework with Behat

Build Status

Features

  • Takes a screenshot automatically.
  • Runs tests with multiple screen sizes 1440x900 and 320x400.
  • It can login WordPress admin.
  • You can run those tests on the Travis CI. See example.

See following.

https://github.com/miya0001/behat-wp-theme-review/tree/master/features

Known Issue

  • Requires PHP 5.5 or later, so we need to check compatibility with lower version of the PHP.
  • We have to write more tests.
  • We have to upload screenshot when it is run on Travis CI.

Getting Started

Clone this repository.

$ git clone [email protected]:miya0001/behat-wp-theme-review.git
$ cd behat-wp-theme-review

Install dependencies.

$ npm install
$ npm run init

Install WordPress into /tmp/wordpress.

$ export WP_THEME=http://example.com/theme.zip
$ export DB_PASS="" # MySQL root password
$ npm run install-wp

Startup WordPress via wp server.

$ npm run wp

Then you can access http://127.0.0.1:8080/.

Envinronment variables

  • WP_THEME - Slug or Zip URL of the Theme. See wp help theme install.
  • WP_VERSION - WordPress version. See wp help core download.
  • WP_PATH - Path to the Document Root. Default is /tmp/wp-behat-tests.
  • WP_PORT - The port number to bind the server to. Default is 8080.
  • DB_PASS - MySQL root password. Default is empty.

Run Tests

$ npm test

Example

https://travis-ci.org/miya0001/behat-wp-theme-review

behat-wp-theme-review's People

Contributors

miya0001 avatar

Watchers

Bikram Shrestha avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.