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

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



$ 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.


* @group tdd
function it_only_runs_this_test()


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

elixir(function(mix) {

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

Like what you read? Give Khary Sharpe a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.