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 3 ediciones intermedias 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 ==


=== Features test ===
=== Feature test ===


  php artisan make:test HomepageTest
  php artisan make:test HomepageTest
Línea 13: Línea 17:
== Hacer correr los tests ==
== Hacer correr los tests ==


  php artisan test  
  php artisan test


= Recursos =
== Hacer correr solo los test features ==


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