Test Driven API Development using Laravel, Dingo and JWT with Documentation
Diaa Fares
21419

Great article, one of the best that I have seen written on this topic.

You could consider also including using Laravel Elixir TDD way

Add to the gulpfile.js

mix.phpUnit();

Then

$ gulp watch

It will automatically run tests when files are changed with popup alert saying passed or failed.

Additionally could take it one step further and only run tests in the group tdd, so you don’t run every single test each time.

mytest.php

/**
* @group tdd
*/
function it_only_runs_this_test()
{
//test
}

gulpfile.js

var elixir = require('laravel-elixir');

elixir(function(mix) {

mix.phpUnit('*/**/*.php', 'vendor/bin/phpunit --verbose --group tdd');

});