<commit_before>Laravel Dusk Testing Helper for Packages Development
==============

The Testbench Dusk Component is a simple package that is supposed to help you write tests for your Laravel package using Laravel Dusk.

The package was developed by [Konsulting Ltd](https://github.com/konsulting) and transferred to the Orchestra namespace where we will assist with supporting it in the future. It is in early development and feedback is appreciated.

[![Build Status](https://travis-ci.org/orchestral/testbench-dusk.svg?branch=3.4)](https://travis-ci.org/orchestral/testbench-dusk)
[![Latest Stable Version](https://poser.pugx.org/orchestra/testbench-dusk/v/stable)](https://packagist.org/packages/orchestra/testbench-dusk)
[![Total Downloads](https://poser.pugx.org/orchestra/testbench-dusk/downloads)](https://packagist.org/packages/orchestra/testbench-dusk)
[![Latest Unstable Version](https://poser.pugx.org/orchestra/testbench-dusk/v/unstable)](https://packagist.org/packages/orchestra/testbench-dusk)
[![License](https://poser.pugx.org/orchestra/testbench-dusk/license)](https://packagist.org/packages/orchestra/testbench-dusk)

* [Version Compatibility](#version-compatibility)
* [Getting Started](#getting-started)
* [Installation](#installation)
* [Usage](#usage)
* [Advanced Usage](#advanced-usage)
* [Changelog](https://github.com/orchestral/testbench-dusk/releases)

## Version Compatibility

 Laravel  | Testbench Dusk
:---------|:----------
 5.4.x    | 3.4.x
 5.5.x    | 3.5.x

## Getting Started

Before going through the rest of this documentation, please take some time to read the following documentation:

* [Package Development for Laravel](https://laravel.com/docs/5.4/packages)
* [Orchestra Testbench Documentation](https://github.com/orchestral/testbench/blob/3.4/README.md)
* [Laravel Duck Documentation](https://laravel.com/docs/5.5/passport)

## Installation

To install through composer, simply put the following in your `composer.json` file:

```json
{
    "require-dev": {
        "orchestra/testbench-dusk": "~3.4"
    }
}
```

And then run `composer install` from the terminal.

### Quick Installation

Above installation can also be simplify by using the following command:

    composer require --dev "orchestra/testbench-dusk=~3.4"

## Usage

To use Testbench Dusk Component, all you need to do is extend `Orchestra\Testbench\Dusk\TestCase` instead of `Laravel\Dusk\TestCase`. The fixture app booted by `Orchestra\Testbench\Dusk\TestCase` is predefined to follow the base application skeleton of Laravel 5.

```php
<?php

class BrowserTestCase extends Orchestra\Testbench\Dusk\TestCase<commit_msg>Fixes typo and url path.<commit_after>Laravel Dusk Testing Helper for Packages Development
==============

The Testbench Dusk Component is a simple package that is supposed to help you write tests for your Laravel package using Laravel Dusk.

The package was developed by [Konsulting Ltd](https://github.com/konsulting) and transferred to the Orchestra namespace where we will assist with supporting it in the future. It is in early development and feedback is appreciated.

[![Build Status](https://travis-ci.org/orchestral/testbench-dusk.svg?branch=3.4)](https://travis-ci.org/orchestral/testbench-dusk)
[![Latest Stable Version](https://poser.pugx.org/orchestra/testbench-dusk/v/stable)](https://packagist.org/packages/orchestra/testbench-dusk)
[![Total Downloads](https://poser.pugx.org/orchestra/testbench-dusk/downloads)](https://packagist.org/packages/orchestra/testbench-dusk)
[![Latest Unstable Version](https://poser.pugx.org/orchestra/testbench-dusk/v/unstable)](https://packagist.org/packages/orchestra/testbench-dusk)
[![License](https://poser.pugx.org/orchestra/testbench-dusk/license)](https://packagist.org/packages/orchestra/testbench-dusk)

* [Version Compatibility](#version-compatibility)
* [Getting Started](#getting-started)
* [Installation](#installation)
* [Usage](#usage)
* [Advanced Usage](#advanced-usage)
* [Changelog](https://github.com/orchestral/testbench-dusk/releases)

## Version Compatibility

 Laravel  | Testbench Dusk
:---------|:----------
 5.4.x    | 3.4.x
 5.5.x    | 3.5.x

## Getting Started

Before going through the rest of this documentation, please take some time to read the following documentation:

* [Package Development for Laravel](https://laravel.com/docs/5.4/packages)
* [Orchestra Testbench Documentation](https://github.com/orchestral/testbench/blob/3.4/README.md)
* [Laravel Dusk Documentation](https://laravel.com/docs/5.4/dusk)

## Installation

To install through composer, simply put the following in your `composer.json` file:

```json
{
    "require-dev": {
        "orchestra/testbench-dusk": "~3.4"
    }
}
```

And then run `composer install` from the terminal.

### Quick Installation

Above installation can also be simplify by using the following command:

    composer require --dev "orchestra/testbench-dusk=~3.4"

## Usage

To use Testbench Dusk Component, all you need to do is extend `Orchestra\Testbench\Dusk\TestCase` instead of `Laravel\Dusk\TestCase`. The fixture app booted by `Orchestra\Testbench\Dusk\TestCase` is predefined to follow the base application skeleton of Laravel 5.

```php
<?php

class BrowserTestCase extends Orchestra\Testbench\Dusk\TestCase
{'fraction_non_alphanumeric': 0.13830392714854867, 'fraction_numerical': 0.00796812749003984, 'mean_word_length': 4.883928571428571, 'pattern_counts': {'":': 4, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 30, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '691434', 'n_tokens_mistral': 1695, 'n_tokens_neox': 1651, 'n_words': 407}