Diferencia entre revisiones de «PHPUnit»

De Wiki Proyectos Beta
Ir a la navegación Ir a la búsqueda
([feat] Add information PHPUnit)
 
(No se muestra una edición intermedia del mismo usuario)
Línea 1: Línea 1:
= General =  
= General =
 
= Recursos =
 
* Sitio oficial: [https://laravel.com/docs/9.x/testing EN]


== Crear test ==
== Crear test ==
Línea 18: Línea 22:


  php artisan test ./tests/Feature
  php artisan test ./tests/Feature
= Recursos =
* Sitio oficial: [https://laravel.com/docs/9.x/testing EN]

Revisión actual - 20:21 6 abr 2023

General

Recursos

  • Sitio oficial: EN

Crear test

Feature test

php artisan make:test HomepageTest

Unit test

php artisan make:test HomepageTest --unit

Hacer correr los tests

php artisan test

Hacer correr solo los test features

php artisan test ./tests/Feature