Git Product home page Git Product logo

testing-setup's Introduction

Workshop Testing Setup

Please make sure that you have a working setup of:

  • PHP 7.0 (or newer)
  • A Git client

Installation

  1. Make sure PHP is installed on your machine. The following link has more information on how to install PHP: http://www.phptherightway.com/#getting\_started On a Debian/Ubuntu-based machine installing PHP is as simple as calling apt-get install php7.1 php7.1-cli as root user.

  2. Using your Git client, checkout https://github.com/QafooLabs/testing-setup.git to a directory of your choice. On the shell you can do that using $ git clone https://github.com/QafooLabs/testing-setup.git.

  3. Switch into the directory of the checkout and call $ php composer.phar install --prefer-dist to install all the dependencies.

  4. [PHPUnit] Try to execute PHPUnit using $ vendor/bin/phpunit, the result should be a single successful test run.

  5. [Behat] Try to execute Behat using $ vendor/bin/behat, the result should be at least 3 passed tests.

Links

Vagrant setup (optional)

For those who are interested there is a vagrant setup available (optional). Just follow these steps to get up and running with your own Virtual environment.

  • Install Virtualbox and Vagrant
  • From the root of this git repository run $ vagrant up and wait for the VM to boot and provision
  • SSH into the VM by running $ vagrant ssh and switch to the testing-setup directory using $ cd testing-setup

Once in the virtual machine you can find all files in /home/vagrant/testing-setup, this is actually the folder on your machine (the host) you ran the vagrant up command from, mounted into the Virtual machine. All changes made to files inside this directory on your computer will reflect immediately on the Virtual machine. This allows you to run PHPUnit on the VM through an SSH session while still being able to edit the files on your computer with your favourite editor or IDE.

To test if all is installed correct run $ phpunit from the testing-setup folder in your VM.

testing-setup's People

Contributors

beberlei avatar chrisramakers avatar kore avatar tobys avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

testing-setup's Issues

Vagrantfile outdated

Hi!

Just tried to get the Vagrant box up with Vagrant 1.2.2, looks like the Vagrantfile is outdated, here's the error message I get:
lars@bungholio:~/projects/innogames/testing-setup(master)$ vagrant up
There were warnings and/or errors while loading your Vagrantfile.
Your Vagrantfile was written for an earlier version of Vagrant,
and while Vagrant does the best it can to remain backwards
compatible, there are some cases where things have changed
significantly enough to warrant a message. These messages are
shown below.

Warnings:

  • config.vm.customize calls are VirtualBox-specific. If you're
    using any other provider, you'll have to use config.vm.provider in a
    v2 configuration block.

Bringing machine 'master' up with 'virtualbox' provider...
[master] Box 'precise64' was not found. Fetching box from specified URL for
the provider 'virtualbox'. Note that if the URL does not have
a box for this provider, you should interrupt Vagrant now and add
the box yourself. Otherwise Vagrant will attempt to download the
full box prior to discovering this error.
Downloading or copying the box...
Progress: 2% (Rate: 502k/s, Estimated time remaining: 0:10:54)^CWaiting for cleanup before exiting...
Box download was interrupted. Exiting.
Vagrant exited after cleanup due to external interrupt.
lars@bungholio:~/projects/innogames/testing-setup(master)$ vagrant --version
Vagrant version 1.2.2

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.