I'm building a RESTful API using Laravel 5.1. I wrote functional tests using the default phpunit came with the package. I'm able to run the tests from command line with phpunit
command.
I want to create a route called /tests
, and bind it to the phpunit tests. So after I deploy the api to the server, I should get the test results when I make a GET
request to http://api.mysite.com/test
.
Is that possible ?
Thanks in advance.