Setting Up Laravel Unit and Security Testsby@erwinnerwin

Setting Up Laravel Unit and Security Tests

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

Too Long; Didn't Read

Laravel Unit and Security Tests are a set of automated tests performed on a Laravel application to ensure its functionality and security. The tests are performed using PHPUnit and PHPCS and are executed on a Git Actions workflow. The following are the steps involved in performing Laravel Unit and Security Tests: Checkout the code from the repository. Set up PHP 8.1 as the PHP version to use. Restore the composer cache if available. Install the dependencies required for the application. Set up the Laravel application. Save the composer cache for future use. Set permissions for the storage and bootstrap/cache directories. Execute the unit and feature tests using PHPUnit. Check the code for any coding standards violations using PHPCS. Install a security checker package and run a security check on the application.
featured image - Setting Up Laravel Unit and Security Tests
Erwin HackerNoon profile picture

@erwinnerwin

Erwin


Receive Stories from @erwinnerwin

react to story with heart
Erwin HackerNoon profile picture
by Erwin @erwinnerwin.Software engineer focused on solving customer problems, currently a Software Development Manager in the UK.
My website

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa