Skip to content

Commit

Permalink
Merge pull request #95 from ec-europa/develop
Browse files Browse the repository at this point in the history
Release v3.0.9
  • Loading branch information
jonhy81 authored Jun 8, 2018
2 parents 34e3446 + 76e69c5 commit 33a7118
Show file tree
Hide file tree
Showing 12 changed files with 563 additions and 1,571 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://drone.ne-dev.eu/api/badges/ec-europa/toolkit/status.svg)](https://drone.ne-dev.eu/ec-europa/toolkit) [![License](https://img.shields.io/badge/License-EUPL%201.1-blue.svg)](LICENSE)
[![Build Status](https://drone.fpfis.eu/api/badges/ec-europa/toolkit/status.svg)](https://drone.ne-dev.eu/ec-europa/toolkit) [![License](https://img.shields.io/badge/License-EUPL%201.1-blue.svg)](LICENSE)

# NextEuropa Toolkit
<img align="left" width="50%" src="https://ec.europa.eu/info/sites/info/themes/europa/images/svg/logo/logo--en.svg" />
Expand Down
38 changes: 38 additions & 0 deletions docs/testing-project.md
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,44 @@ Total time: 4 minutes 6.64 seconds
```
</p></details>

### Manual or custom behat testing:

If you wish to manually execute behat after editing the behat.yml for example
you could:

<details><p><summary>execute <code>tests/vendor/behat/behat/bin/behat --config="tests/behat.yml" --strict</code></summary></p>

If you project needs a custom version of behat or other packages you should add
these to the require-dev section of your main composer.json file. Then you can
use any package you need to perform your tests by executing your own binary or
by changing the build property of the behat.bin to your own location:

```shell
behat.bin = ${project.basedir}/vendor/behat/behat/bin/behat
```

```javascript
{
"name": "ec-europa/subsite",
"require": {
"ec-europa/toolkit": "3.*"
},
"require-dev": {
"behat/behat": "~3.1.0@rc",
"drupal/drupal-extension": "~3.1.0"
}
"scripts": {
"post-install-cmd": "@toolkit-install",
"post-update-cmd": "@toolkit-install",
"toolkit-install": "PROJECT=$(pwd) composer run-script toolkit-install -d ./vendor/ec-europa/toolkit"
}
}
```
</p></details>

Click for command above for more information on how to use your own packages for
testing.

## PHPCS testing
To run behat tests you can make use of the `test-run-phpcs` command. This will
re-generate your phpcs configuration int `./phpcs.xml` and run it on your
Expand Down
2 changes: 0 additions & 2 deletions includes/composer/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
"php": ">=5.4.0"
},
"require-dev": {
"behat/behat": "~3.4.3",
"drupal/drupal-extension": "~v4.0.0alpha2",
"ec-europa/qa-automation": "^3.0.9"
},
"_comment_minimum_stability": "Remove the 'minimum-stability' and 'prefer-stable' directives once new releases of Coder and PHP CodeSniffer are available.",
Expand Down
Loading

0 comments on commit 33a7118

Please sign in to comment.