Diferencia entre revisiones de «PHPUnit»

De Wiki Proyectos Beta
Ir a la navegación Ir a la búsqueda
([feat] Add information about Laravel - Testing PHPUnit)
 
([feat] Add information PHPUnit)
 
(No se muestran 6 ediciones intermedias del mismo usuario)
Línea 1: Línea 1:
= General =  
= General =


= Recursos =
= Recursos =


* Sitio oficial: [https://laravel.com/docs/9.x/testing EN]
* Sitio oficial: [https://laravel.com/docs/9.x/testing 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

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