PHPackages                             yawik/behat - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. yawik/behat

ActiveLibrary[Testing &amp; Quality](/categories/testing)

yawik/behat
===========

This package provide a Behat tests utility for yawik

1.0.5(5y ago)03.1k112MITPHP

Since Nov 23Pushed 4y ago2 watchersCompare

[ Source](https://github.com/yawik/behat)[ Packagist](https://packagist.org/packages/yawik/behat)[ RSS](/packages/yawik-behat/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (9)Versions (52)Used By (12)

Behat Testing
=============

[](#behat-testing)

Yawik use behat to do browser testing. Here's how to run behat tests:

### WARNING!!!

[](#warning)

In order to perform installation tests, behat will create `config/autoload/install.module.php` file. If you have your yawik installation always go to install page, please remove this file manually and restore backup file:

```
$ cd path/to/yawik
$ rm config/autoload/install.module.php
$ mv config/autoload/yawik.backup config/autoload/yawik.config.global.php
```

### Behat Configuration

[](#behat-configuration)

Copy default behat configuration file:

```
$ cp behat.yml.dist behat.yml
```

Edit `base_url` in `behat.yml` configuration files to match your local yawik installation url:

```
# change base url to match your location
default:
    ...
    extensions:
        ...
        Behat\MinkExtension:
            # change this base url value to match
            # your local development server url:
            base_url: "http://localhost:8000"
            files_path: "%paths.base%/module/Behat/resources/fixtures/"
```

### Run Behat tests

[](#run-behat-tests)

Start selenium standalone server with chrome driver:

```
$ cd path/to/yawik
$ ./bin/start-selenium.sh
```

You can run all scenario with this command:

```
$ cd path/to/yawik
$ ./vendor/bin/behat
```

To run behat only for specific feature:

```
$ ./vendor/bin/behat features/install.feature
```

To run behat only for specific scenario:

```
$ ./vendor/bin/behat features/install.feature:12
```

That command above will run only scenario in `features/install.feature`line 12

### Screenshot

[](#screenshot)

Because by default behat will perform test in headless mode, you can see screenshot for behat failed test in `build/behat` directory. The `*.png` files will show browser screenshot, and `*.log` files will show actual html output during tests.

### Mail and Social Profile Feature

[](#mail-and-social-profile-feature)

By default behat will skip mail and social profile tests, because this will cause error in travis. To perform this skipped tests you need to be sure that your mail and social login configuration is valid, and configure social profile user to be used during tests:

```
# path/to/yawik/behat.yml
default:
    suites:
        user:
            contexts:
                - Yawik\Behat\UserContext:
                      parameters:
                          social_login_info:
                              facebook:
                                  email:
                                  pass:
                              linkedin:
                                  session_key-login:
                                  session_password-login:
```

You can run this skipped tests by using this command:

```
# to run mail tests:
$ cd path/to/yawik
$ ./vendor/bin/behat --tags=@mail

# to run social profile tests
$ cd path/to/yawik
$ ./vendor/bin/behat --tags=@social-profile
```

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 91.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~16 days

Recently: every ~0 days

Total

48

Last Release

1972d ago

Major Versions

v0.35.1 → 1.0.52020-12-20

### Community

Maintainers

![](https://www.gravatar.com/avatar/773482b6a2a3f5a3ddeca77a3eff7c2a81cc340b5f5ffd643fac005b89908487?d=identicon)[TiSiE](/maintainers/TiSiE)

![](https://avatars.githubusercontent.com/u/858642?v=4)[Carsten Bleek](/maintainers/cbleek)[@cbleek](https://github.com/cbleek)

![](https://www.gravatar.com/avatar/8e41c1fdde09e273e3c0ef6851041c2663a6655f61a5da543629acd2b7031249?d=identicon)[toni.munthi](/maintainers/toni.munthi)

---

Top Contributors

[![kilip](https://avatars.githubusercontent.com/u/301065?v=4)](https://github.com/kilip "kilip (74 commits)")[![cbleek](https://avatars.githubusercontent.com/u/858642?v=4)](https://github.com/cbleek "cbleek (7 commits)")

---

Tags

laminasyawikBehatmodule

### Embed Badge

![Health badge](/badges/yawik-behat/health.svg)

```
[![Health](https://phpackages.com/badges/yawik-behat/health.svg)](https://phpackages.com/packages/yawik-behat)
```

###  Alternatives

[drupal/drupal-extension

Drupal extension for Behat

22215.1M147](/packages/drupal-drupal-extension)[sensiolabs/behat-page-object-extension

Page object extension for Behat

1166.5M27](/packages/sensiolabs-behat-page-object-extension)[drevops/behat-steps

Collection of steps for Behat

25381.7k3](/packages/drevops-behat-steps)[devinci/devinci-behat-extension

Provides extra behat goodies.

17593.9k](/packages/devinci-devinci-behat-extension)[polishsymfonycommunity/symfony2-mocker-extension

Behat extension for mocking services defined in the Symfony2 dependency injection container.

26253.1k4](/packages/polishsymfonycommunity-symfony2-mocker-extension)[genesis/behat-fail-aid

Get more out of your test suite by getting it to work with you when tests fail. Screenshots and more. Works with Goutte and MinkExtension.

281.5M17](/packages/genesis-behat-fail-aid)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
