2017 © Pedro Peláez
 

library ci

A Test Driven Development Dashboard Package

image

pragmarx/ci

A Test Driven Development Dashboard Package

  • Thursday, December 7, 2017
  • by AntonioCarlosRibeiro
  • Repository
  • 32 Watchers
  • 601 Stars
  • 1,245 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 47 Forks
  • 6 Open issues
  • 16 Versions
  • 0 % Grown

The README.md

TDDD - Test Driven Development Dashboard

A Self-Hosted TDD Dashboard & Tests Watcher

Latest Stable Version License Downloads Code Quality Build StyleCI, (*1)

What is it?

TDD Dashboard, is an app (built as a Laravel PHP package) to watch and run all your tests during development. It supports any test framework working on terminal, and comes with some testers (PHPUnit, phpspec, behat, Jest, AVA...) preconfigured, but you can easily add yours, just tell it where the executable is and it's done. It also shows the progress of your tests, let you run a single test or all of them, and open your favorite code editor (PHPStorm, VSCode, Sublime Text, etc.) going right to the failing line of your test. If your test framework generate screenshots, it is also able to show it in the log page, with all the reds and greens you are used to see in your terminal., (*2)

It uses Laravel as motor, but supports (and has been tested with) many languages, frameworks and testing frameworks:, (*3)

Features

  • Project List: click a project link to see all its tests.
  • Open files directly in your source code editor (PHPStorm, Sublime Text...).
  • Error log with source code linked, go strait to the error line in your source code.
  • Enable/disable a test. Once disabled if the watcher catches a change in resources, that test will not fire.
  • Real time test state: "idle", "running", "queued", "ok" and "failed".
  • "Show" button, to display the error log of failed tests.
  • Highly configurable, watch anything and test everything!

Videos

Screenshots

Dashboard

visits, (*4)

Error Log

visits, (*5)

visits, (*6)

visits, (*7)

Command Line Interface

The Artisan commands Watcher and Tester are responsible for watching resources and firing tests, respectively:, (*8)

Watcher

Keep track of your files and enqueue your tests every time a project or test file is changed. If a project file changes, it will enqueue all your tests, if a test file changes, it will enqueue only that particular test. This is how you run it:, (*9)

``` bash php artisan tddd:watch, (*10)


### Tester Responsible for taking tests from the run queue, execute it and log the results. Tester will only execute enabled tests. This is how you run it: ``` bash php artisan tddd:test

Notifications

It uses JoliNotif, so if it's not working on macOS, you can try installing terminal-notifier:, (*11)

``` bash brew install terminal-notifier, (*12)


## Test Framework Compatibility This package was tested and is known to be compatible with * [Codeception](http://codeception.com/) * [PHPUnit](https://phpunit.de/) * [phpspec](http://www.phpspec.net/) * [behat](http://docs.behat.org/) * [atoum](https://github.com/atoum/atoum) * [Nette Tester](http://tester.nette.org/en/) ## Installing #### TL;DR ``` bash laravel new tddd cd tddd composer require pragmarx/tddd php artisan vendor:publish --provider="PragmaRX\Tddd\Package\ServiceProvider" valet link tddd # configure database on your .env php artisan migrate php artisan tddd:watch & php artisan tddd:work & open http://tddd.dev/tests-watcher/dashboard

Examples & Starter App

For lots of examples, check this starter app, which will also help you create an independent dashboard for your tests., (*13)

The long version

Require it with Composer:, (*14)

``` bash composer require pragmarx/tddd, (*15)


Create a database, configure on your Laravel app and migrate it ``` bash php artisan migrate

Publish Ci configuration:, (*16)

On Laravel 4.*, (*17)

Add the service provider to your app/config/app.php:, (*18)

``` php 'PragmaRX\Tddd\Package\ServiceProvider',, (*19)


``` bash php artisan config:publish pragmarx/tddd

On Laravel 5.*, (*20)

``` bash php artisan vendor:publish --provider="PragmaRX\Tddd\Package\ServiceProvider", (*21)


## Example of projects ### Laravel Dusk ``` php 'project bar (dusk)' => [ 'path' => $basePath, 'watch_folders' => [ 'app', 'tests/Browser' ], 'exclude' => [ 'tests/Browser/console/', 'tests/Browser/screenshots/', ], 'depends' => [], 'tests_path' => 'tests', 'suites' => [ 'browser' => [ 'tester' => 'dusk', 'tests_path' => 'Browser', 'command_options' => '', 'file_mask' => '*Test.php', 'retries' => 0, ], ], ],

Troubleshooting

Tests are running fine in terminal but failing in the dashboard?

You have first to remember they are being executed in isolation, and, also, the environment is not exactly the same, so things like a cache and session may affect your results., (*22)

Requirements

  • Laravel 4.1+ or 5
  • PHP 5.3.7+

Author

Antonio Carlos Ribeiro, (*23)

License

Laravel Ci is licensed under the BSD 3-Clause License - see the LICENSE file for details, (*24)

Contributing

Pull requests and issues are welcome., (*25)

The Versions

07/12 2017

dev-master

9999999-dev

A Test Driven Development Dashboard Package

  Sources   Download

MIT BSD-3-Clause

The Requires

 

The Development Requires

laravel bdd tdd test phpunit testing behat ci continuous integration phpspec codeception watcher atoum tester test-driven development dusk

07/12 2017

dev-docker

dev-docker

A Test Driven Development Dashboard Package

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel bdd tdd test phpunit testing behat ci continuous integration phpspec codeception watcher atoum tester test-driven development dusk

31/10 2017

dev-analysis-8609gM

dev-analysis-8609gM

A Tests Watcher Service & Dashboard Package

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel bdd tdd test phpunit testing behat ci continuous integration phpspec codeception watcher atoum tester dusk

19/10 2017

v0.9.5

0.9.5.0

A Tests Watcher Service & Dashboard Package

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel bdd tdd test phpunit testing behat ci continuous integration phpspec codeception watcher atoum tester dusk

10/10 2017

v0.9.4

0.9.4.0

A Tests Watcher Service & Dashboard Package

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

laravel bdd tdd test phpunit testing behat ci continuous integration phpspec codeception watcher atoum tester dusk

10/10 2017

v0.9.3

0.9.3.0

A Tests Watcher Service & Dashboard Package

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

laravel bdd tdd test phpunit testing behat ci continuous integration phpspec codeception watcher atoum tester dusk

09/10 2017

v0.9.2

0.9.2.0

A Tests Watcher Service & Dashboard Package

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

laravel bdd tdd test phpunit testing behat ci continuous integration phpspec codeception watcher atoum tester dusk

08/10 2017

v0.9.1

0.9.1.0

A Tests Watcher Service & Dashboard Package

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

laravel bdd tdd test phpunit testing behat ci continuous integration phpspec codeception watcher atoum tester dusk

08/10 2017

v0.9.0

0.9.0.0

A Tests Watcher Service & Dashboard Package

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

laravel bdd tdd test phpunit testing behat ci continuous integration phpspec codeception watcher atoum tester dusk

10/03 2015

v0.5.0

0.5.0.0

A Continuous Integration Service & Dashboard Package

  Sources   Download

BSD-3-Clause

The Requires

 

laravel tdd test testing ci continuous integration

18/02 2015

v0.1.5

0.1.5.0

A Continuous Integration Service & Dashboard Package

  Sources   Download

BSD-3-Clause

The Requires

 

laravel tdd test testing ci continuous integration

22/12 2014

v0.1.4

0.1.4.0

A Continuous Integration Service & Dashboard Package

  Sources   Download

BSD-3-Clause

The Requires

 

laravel tdd test testing ci continuous integration

19/12 2014

v0.1.3

0.1.3.0

A Continuous Integration Service & Dashboard Package

  Sources   Download

BSD-3-Clause

The Requires

 

laravel tdd test testing ci continuous integration

03/12 2014

v0.1.2

0.1.2.0

A Continuous Integration Service & Dashboard Package

  Sources   Download

BSD-3-Clause

The Requires

 

laravel tdd test testing ci continuous integration

03/12 2014

v0.1.1

0.1.1.0

A Continuous Integration Service & Dashboard Package

  Sources   Download

BSD-3-Clause

The Requires

 

laravel tdd test testing ci continuous integration

24/11 2014

v0.1.0

0.1.0.0

A Continuous Integration Dashboard Package for Laravel

  Sources   Download

BSD-3-Clause

The Requires

 

laravel