Coder Social home page Coder Social logo

storyplayer's Introduction

Storyplayer

Bring your user and service stories to life through your tests.

If Installed System-Wide ...

Installation

Storyplayer should be installed via Composer. To install Storyplayer, create a composer.json file with the following contents:

{
    "require": {
        "datasift/storyplayer": "1.5.0"
    }
}

Then, run composer install. Once that's completed, run ./vendor/bin/storyplayer install to install any additional dependencies.

Usage

If your tests need a web browser, make sure you've started browsermob-proxy and selenium:

./vendor/bin/browsermob-proxy.sh start
./vendor/bin/selenium-server.sh start

Basic usage is:

./vendor/bin/storyplayer [-e <environment>] <story>

where:

  • <environment> is the name of the environment that you want to run your story against (defaults to your hostname)
  • <story> is the path to the PHP file containing your story and its test

Running It Out Of A Git Clone

See installing Storyplayer.

Building The Dependencies

If you want to run storyplayer from inside its own git repo, make sure that you have Phix installed, and then do the following:

phing build-vendor

Usage

If your tests need a web browser, make sure you've started browsermob-proxy and selenium:

vendor/bin/browsermob-proxy.sh start
vendor/bin/selenium-server.sh start

Basic usage is:

storyplayer self-test src/tests/functional-tests/<story>

where:

  • self-test is the name of an environment already defined in storyplayer.xml.dist
  • src/tests/functional-tests/ is the path to Storyplayer's own tests, that ship with it :)

Full Documentation

You'll find our docs at http://datasift.github.io/storyplayer.

Common issues

If you try and run Storyplayer but get one of the following error messages, the OS you're using isn't currently supported:

  • fatal error: Unable to detect OS
  • fatal error: Unable to create from distributions: [distribution list]

Currently supported OS's are:

  • OSX
  • Ubuntu
  • Linux Mint
  • Fedora
  • CentOS 5
  • CentOS 6

If you're not using one of these but still want to use Storyplayer, we can help! To enable us to add support, open an issue and post the results of the following commands:

# This is how we detect the OS
cat /etc/issue

# This is how we get your IP address
ifconfig

With this information, we can add support for your OS to Storyplayer.

License

New BSD license. Full details are in the LICENSE.txt file.

storyplayer's People

Contributors

badmetacoder avatar lboynton avatar mheap avatar stuartherbert avatar zcourts avatar

Watchers

 avatar  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.