PHPackages                             su-sws/linky\_clicky - 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. su-sws/linky\_clicky

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

su-sws/linky\_clicky
====================

Behat tests mean death to linky-clicky.

6.x-dev(7y ago)6343[3 issues](https://github.com/SU-SWS/linky_clicky/issues)[6 PRs](https://github.com/SU-SWS/linky_clicky/pulls)1GPL-2.0+Gherkin

Since Dec 11Pushed 3y ago36 watchersCompare

[ Source](https://github.com/SU-SWS/linky_clicky)[ Packagist](https://packagist.org/packages/su-sws/linky_clicky)[ Docs](https://github.com/SU-SWS/linky_clicky)[ RSS](/packages/su-sws-linky-clicky/feed)WikiDiscussions 5.x Synced 2d ago

READMEChangelogDependencies (10)Versions (45)Used By (1)

Linky Clicky
============

[](#linky-clicky)

Behat tests mean death to linky-clicky!

Installation
------------

[](#installation)

You can either copy the values from the composer.json file to your local file or you can compile here. The files and directories that composer creates will be .gitignore'd

`composer install`

If you install locally there should be a `bin/behat` executable for you. You can either point your system to that behat install or use it in some other way.

Updating an Existing Project from branch behat3
-----------------------------------------------

[](#updating-an-existing-project-from-branch-behat3)

#### Todo

[](#todo)

1. Update behat.yml paths
2. Update behat.local.yml paths
3. Update symlinks from features/bootstrap
4. Update symlinks that were to shared tests eg: includes/jumpstart\_home

Updating an Existing Project from Behat 1.0
-------------------------------------------

[](#updating-an-existing-project-from-behat-10)

If you have a `behat.local.yml` file (which is not tracked by git), update it to match the syntax in `behat.local.yml.default`. Specifically:

- `Behat\MinkExtension\Extension` will need to be changed to `Behat\MinkExtension`
- `Drupal\DrupalExtension\Extension` will need to be changed to `Drupal\DrupalExtension`

Otherwise, you may get an error like:

```
  [Behat\Testwork\ServiceContainer\Exception\ExtensionInitializationException]
  `Behat\MinkExtension\Extension` extension file or class could not be located.

```

Creating a new project
----------------------

[](#creating-a-new-project)

When creating a set of testing features for a new site, create a new directory for that site. Copy `behat.yml.default` and `behat.local.yml.default` into the root of that directory and rename them to `behat.yml` and `behat.local.yml`, respectively. Edit the "base\_url" and the drush "alias" values to match the site you are testing.

`behat.yml` imports the files at `includes/extensions/*` and `includes/config`

`behat.local.yml` is ignored by git.

Create a `features` directory and place your `*.feature` files in that directory.

Create a `features/bootstrap` directory, copy `FeatureContext.php.default` into there, and rename it `FeatureContext.php`

In the `features/bootstrap` directory, create a symbolic link for each of the following files.

1. SWSFeatureContext.php -&gt; includes/bootstrap/SWSFeatureContext.php
2. SWSDrupalContext.php -&gt; includes/bootstrap/SWSDrupalContext.php
3. SWSMinkContext.php -&gt; includes/bootstrap/SWSMinkContext.php

The default `FeatureContext.php` file is where you can put your site specific step definitions.

The `SWSFeatureContext.php` file is where all of the custom shared step definitions are stored. Behat 3 does not allow for sub contexts anymore and references to the DrupalContext and MinkContext are saved in variables in this file.

The `SWSDrupalContext.php` file is the DrupalExtention DrupalContext override file and contains an override of the Drupal login step, which is necessary because WMD hides the user login form in a collapsible fieldset.

The `SWSMinkContext.php` file is the DrupalExtension MinkContext override file that contains an extra function.

There are a number of starter or common feature tests you can use in your new project at `includes/features`. Simply copy these into your new projects features folder and start editing them to fit your new site or product.

Formatters
----------

[](#formatters)

The formatters and syntax that comes with Behat 3 has changed. By default Behat 3 no longer comes with an html output option. Included in the composer build is an HTML formatter for behat but it needs to be configured in your behat.local.yml file or passed to the behat function through the command link with a number of parameters.

See: and:

Directory structure
-------------------

[](#directory-structure)

```
sitename
|--behat.yml
|--behat.local.yml
|--features
   |--featurename.feature
   |--bootstrap
      |--FeatureContext.php
      |--SWSFeatureContext.php
      |--SWSDrupalContext.php
      |--SWSMinkContext.php

```

git-crypt
---------

[](#git-crypt)

Some files in this repository are encrypted with [git-crypt](https://github.com/AGWA/git-crypt). For instructions on how to decrypt these files, see the [directions on SWS Confluence](https://asconfluence.stanford.edu/confluence/display/SWS/Encrypting+Files+with+git-crypt) (authentication required).

Travis Integration
==================

[](#travis-integration)

CAPx
----

[](#capx)

Included is a custom step definition for CAPx credentials. To use this definition in travis-ci.org, go to settings of the repository to be tested withint travis-ci.org. Add two environment variables "CAPX\_USER" and "CAPX\_PASSWORD". Verify the values are not displayed in the log report. Then in the behat tests, use the step definition "Given I am authenticated with CAPx". This will track existing credentials and encrypt the new credentials from the travis environment variables. This will only set the variables. Any additional testing may require organization codes to be updated during the test.

See Also
--------

[](#see-also)

See \[Using Linky Clicky\] ([https://github.com/SU-SWS/linky\_clicky/blob/5.x/UsingLinkyClicky.md](https://github.com/SU-SWS/linky_clicky/blob/5.x/UsingLinkyClicky.md))

See \[Running Linky Clicky\] ([https://github.com/SU-SWS/linky\_clicky/blob/5.x/RunningLinkyClicky.md](https://github.com/SU-SWS/linky_clicky/blob/5.x/RunningLinkyClicky.md))

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community27

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~722 days

Total

3

Last Release

2306d ago

Major Versions

4.x-dev → 6.x-dev2018-07-10

### Community

Maintainers

![](https://www.gravatar.com/avatar/680d4f5083667895b9323d1f792118734589007acc782a6e60e63d95f87d6081?d=identicon)[stanfordwebservices](/maintainers/stanfordwebservices)

---

Top Contributors

[![jbickar](https://avatars.githubusercontent.com/u/821106?v=4)](https://github.com/jbickar "jbickar (531 commits)")[![sherakama](https://avatars.githubusercontent.com/u/550602?v=4)](https://github.com/sherakama "sherakama (240 commits)")[![cjwest](https://avatars.githubusercontent.com/u/284440?v=4)](https://github.com/cjwest "cjwest (216 commits)")[![pookmish](https://avatars.githubusercontent.com/u/7185045?v=4)](https://github.com/pookmish "pookmish (61 commits)")[![cynmij](https://avatars.githubusercontent.com/u/1851116?v=4)](https://github.com/cynmij "cynmij (33 commits)")[![boznik](https://avatars.githubusercontent.com/u/2373119?v=4)](https://github.com/boznik "boznik (32 commits)")[![clausM2](https://avatars.githubusercontent.com/u/23086208?v=4)](https://github.com/clausM2 "clausM2 (14 commits)")[![kmakitan](https://avatars.githubusercontent.com/u/13700300?v=4)](https://github.com/kmakitan "kmakitan (11 commits)")[![nsoderquist](https://avatars.githubusercontent.com/u/15348000?v=4)](https://github.com/nsoderquist "nsoderquist (9 commits)")[![linneawilliams](https://avatars.githubusercontent.com/u/1205847?v=4)](https://github.com/linneawilliams "linneawilliams (7 commits)")[![meganem](https://avatars.githubusercontent.com/u/1919260?v=4)](https://github.com/meganem "meganem (7 commits)")[![kbrownell](https://avatars.githubusercontent.com/u/4072139?v=4)](https://github.com/kbrownell "kbrownell (6 commits)")[![dabayani](https://avatars.githubusercontent.com/u/15347994?v=4)](https://github.com/dabayani "dabayani (6 commits)")[![ellewilson16](https://avatars.githubusercontent.com/u/9056260?v=4)](https://github.com/ellewilson16 "ellewilson16 (3 commits)")[![mnakamura](https://avatars.githubusercontent.com/u/374749?v=4)](https://github.com/mnakamura "mnakamura (1 commits)")[![mistermarco](https://avatars.githubusercontent.com/u/107054?v=4)](https://github.com/mistermarco "mistermarco (1 commits)")

---

Tags

behat

### Embed Badge

![Health badge](/badges/su-sws-linky-clicky/health.svg)

```
[![Health](https://phpackages.com/badges/su-sws-linky-clicky/health.svg)](https://phpackages.com/packages/su-sws-linky-clicky)
```

###  Alternatives

[drupal/drupal-extension

Drupal extension for Behat

21115.5M166](/packages/drupal-drupal-extension)[drevops/behat-steps

Collection of steps for Behat

27409.9k4](/packages/drevops-behat-steps)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751284.3k37](/packages/civicrm-civicrm-core)[wp-cli/wp-cli-tests

WP-CLI testing framework

423.0M130](/packages/wp-cli-wp-cli-tests)[devinci/devinci-behat-extension

Provides extra behat goodies.

17596.9k](/packages/devinci-devinci-behat-extension)

PHPackages © 2026

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