Skip to content

Commit

Permalink
Add shoov scaffolding.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Kohav committed Oct 22, 2015
1 parent 1c8014c commit c987f7c
Show file tree
Hide file tree
Showing 13 changed files with 1,803 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .shoov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
before_script:
# Exit one errors.
- set -e

# Install Behat
- cd ./behat
- cp behat.local.yml.example behat.local.yml
- composer install
- cd ..

# Install webdriverCSS
- cd ./visual-monitor
- npm install
- cd ..


script:
- cd ./behat
- ./bin/behat --tags=~wip
- cd ..

- cd ./visual-monitor
- PROVIDER_PREFIX=browserstack SELECTED_CAPS=chrome mocha
4 changes: 4 additions & 0 deletions behat/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
vendor/
behat.local.yml
bin/
composer.phar
9 changes: 9 additions & 0 deletions behat/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
```bash
curl -sS https://getcomposer.org/installer | php
php composer.phar install
```

```bash
# Execute the tests.
./bin/behat
```
10 changes: 10 additions & 0 deletions behat/behat.local.yml.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
default:
extensions:
Behat\MinkExtension:
base_url: "http://www.thebrickfactory.com"

## Selenium integration
# selenium2:
# http://selenium is the URL alias to the Selenium docker container.
# wd_host: "http://selenium:4444/wd/hub"
# browser: chrome
12 changes: 12 additions & 0 deletions behat/behat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
default:
suites:
default:
contexts:
- FeatureContext
extensions:
Behat\MinkExtension:
goutte: ~
selenium2: ~

imports:
- behat.local.yml
10 changes: 10 additions & 0 deletions behat/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "Behat tests for http://www.thebrickfactory.com",
"description": "Functional testing for http://www.thebrickfactory.com site.",
"require": {
"drupal/drupal-extension": "~3.0"
},
"config": {
"bin-dir": "bin/"
}
}
Loading

0 comments on commit c987f7c

Please sign in to comment.