This course is still being released! Check back later for more chapters.

Get Notified About this Course!

We will send you messages regarding this course only
and nothing else, we promise.
You can unsubscribe anytime by emailing us at:
privacy@symfonycasts.com
> Testing >

Course Overview

Pruebas de extremo a extremo en Symfony: de WebTestCase a Playwright

Build fast, reliable feature tests for your Symfony app - from `WebTestCase` and `zenstruck/browser` to real-browser tests with Playwright. Test forms, logins, APIs and emails, isolate tests with Foundry + DAMA, and speed it all up with ParaTest.

  • intermediate
  • 2 students
  • EN/ES Captions
  • EN/ES Script
  • Certificate of Completion

Your Guides

About this course

Aunque el código de este tutorial usa Symfony 7.4, ¡todo lo que se explica aquí funciona en Symfony 8 y versiones posteriores!

What PHP libraries does this tutorial use?

// composer.json
{
    "require": {
        "php": ">=8.4",
        "ext-ctype": "*",
        "ext-iconv": "*",
        "doctrine/doctrine-bundle": "^3.4", // 3.4.2
        "doctrine/doctrine-migrations-bundle": "^3.7", // 3.7.1
        "doctrine/orm": "^3.8", // 3.8.0
        "phpdocumentor/reflection-docblock": "^6.0", // 6.0.3
        "phpstan/phpdoc-parser": "^2.4", // 2.4.1
        "symfony/asset": "7.4.*", // v7.4.8
        "symfony/asset-mapper": "7.4.*", // v7.4.23
        "symfony/console": "7.4.*", // v7.4.23
        "symfony/doctrine-messenger": "7.4.*", // v7.4.23
        "symfony/dotenv": "7.4.*", // v7.4.18
        "symfony/expression-language": "7.4.*", // v7.4.21
        "symfony/flex": "^2", // v2.12.0
        "symfony/form": "7.4.*", // v7.4.23
        "symfony/framework-bundle": "7.4.*", // v7.4.23
        "symfony/http-client": "7.4.*", // v7.4.23
        "symfony/intl": "7.4.*", // v7.4.22
        "symfony/mailer": "7.4.*", // v7.4.22
        "symfony/mime": "7.4.*", // v7.4.22
        "symfony/monolog-bundle": "^3.0|^4.0", // v4.1.0
        "symfony/notifier": "7.4.*", // v7.4.23
        "symfony/process": "7.4.*", // v7.4.22
        "symfony/property-access": "7.4.*", // v7.4.23
        "symfony/property-info": "7.4.*", // v7.4.23
        "symfony/runtime": "7.4.*", // v7.4.23
        "symfony/security-bundle": "7.4.*", // v7.4.23
        "symfony/serializer": "7.4.*", // v7.4.23
        "symfony/stimulus-bundle": "^2.36", // v2.36.0
        "symfony/string": "7.4.*", // v7.4.22
        "symfony/translation": "7.4.*", // v7.4.23
        "symfony/twig-bundle": "7.4.*", // v7.4.21
        "symfony/ux-turbo": "^2.36", // v2.36.0
        "symfony/validator": "7.4.*", // v7.4.23
        "symfony/web-link": "7.4.*", // v7.4.8
        "symfony/yaml": "7.4.*", // v7.4.23
        "symfonycasts/tailwind-bundle": "^1.0", // v1.0.0
        "twig/extra-bundle": "^2.12|^3.0", // v3.29.0
        "twig/twig": "^2.12|^3.0" // v3.30.0
    },
    "require-dev": {
        "phpunit/phpunit": "^12.5", // 12.5.44
        "symfony/browser-kit": "7.4.*", // v7.4.23
        "symfony/css-selector": "7.4.*", // v7.4.22
        "symfony/debug-bundle": "7.4.*", // v7.4.8
        "symfony/maker-bundle": "^1.0", // 1.68.0
        "symfony/stopwatch": "7.4.*", // v7.4.8
        "symfony/web-profiler-bundle": "7.4.*", // v7.4.23
        "zenstruck/foundry": "^2.17" // v2.17.0
    }
}

Ya hemos hablado de las pruebas unitarias y de las pruebas de integración. Ahora es el momento de probar aquello con lo que tus usuarios interactúan de verdad: ¡tu aplicación!

En este curso, crearemos una configuración práctica de pruebas de extremo a extremo para Symfony, empezando por las herramientas de pruebas integradas de Symfony y avanzando hasta llegar a un navegador real que ejecute JavaScript real.

Por el camino, veremos:

  • Pruebas unitarias, de integración y de extremo a extremo: para qué sirve cada una y dónde encajan
  • WebTestCase y las herramientas de pruebas funcionales integradas en Symfony
  • Crear exactamente el estado de la base de datos que necesitamos con zenstruck/foundry
  • zenstruck/browser para pruebas de navegador expresivas y fluidas
  • Probar formularios, inicio de sesión, control de acceso, redirecciones, validación y otros flujos reales de la aplicación
  • Comprobar correos electrónicos y mensajes asíncronos de Messenger desde tus pruebas de funcionalidades
  • Probar API JSON: leer respuestas, autenticación con tokens y crear datos con peticiones POST
  • Pasando a un navegador real con playwright-php/playwright-symfony
  • Ejecuta pruebas E2E basadas en JavaScript sin tener que poner en marcha un servidor web aparte
  • Depurar errores y conseguir que las pruebas E2E sean rápidas, fiables y divertidas de escribir
  • Mantener las pruebas de bases de datos aisladas y rápidas con DAMA DoctrineTestBundle
  • Ejecutar el conjunto de pruebas en paralelo con ParaTest

El objetivo no es convertir cada prueba en una prueba E2E. Se trata de crear una caja de herramientas de pruebas para que sepas qué tipo de prueba escribir, hasta qué nivel de la pila llegar y cómo probar tus flujos de usuario más importantes con confianza.

¡Manos a la obra con las pruebas!

Next courses in the Testing: Beginner Testing section of the Testing Track!

15 Comments

Sort By
Login or Register to join the conversation
Nizar 1 year ago

Hey,
Are there any news when this course is available?

2 |

Hey Nizar,

First of all, thank you for your interest in SymfonyCasts tutorials! Unfortunately, this course is on pause. I think we can return to it after we will release several other tutorials we're working on right now. My rough estimation is that this course should be finally released by the end of 2025, but no certain date yet. Thanks for your patience and understanding!

Cheers!

1 |
MarvinPaul 7 months ago

Will this course ever be released? If not just delete it, you are sending false signals by calling something upcoming and then you do not deliver in years. I am totally aware of the difficultys you have been going through over the years so it is understandable, why you might not manage to do it, but still at least be transparent.

By the way I would love to hear this becoming a priority. It is extra important for legacy applications, that have trouble with unit tests.

1 |

Hey @MarvinPaul,

Sorry about that! Yeah, this one kept getting pushed because I wanted to cover testing of forms and security. For that, I wanted those courses available first. Forms is done and we're going to be publishing Security very shortly. So this one will be my next priority.

For future courses, we now only announce them as upcoming when they're a few weeks away (not months, years).

Regards,
Kevin

2 |
Nizar 4 months ago

Hey,
Are there any news when this course is available?

|

Hey @Nizar,

Yes! This will be the next course I work on after Security (which is being released now).

--Kevin

1 |

Hey,
Are there any news when this course is available?

|

Hey Nizar,

Thank you for your interest in SymfonyCasts tutorials! Unfortunately, this course is on pause because the author who was working on it can't continue it, so it was paused on the very early stage unfortunately. We will definitely want to make it released someday, but I don't know when it will happen, we're working on other cool tutorials right now.

Thank you for your patience and understanding!

Cheers!

|

Are there any news when this course is available?

|

Hey @Julian-D and @Pedy !

Thank you for your interest in SymfonyCasts tutorials! This course is currently on pause because we're working on other topics and don't have much time to push it forward. I think it will be released later this year, but I don't have more exact estimations, unfortunately.

Cheers!

1 |
Julian-D 2 years ago

Hey! Really curious about this one! Is there an ETA? Cheers!

|
Marcos-D 2 years ago

Hi! looking forward for this one. What's the ETA? Thanks

|

Hey Marcos,

Thank you for your interest in SymfonyCasts tutorials! We're going to release a few Symfony 7-related tutorials before this, so my rough estimation - this will be started releasing after 1-2 months. Feel free to subscribe to it with "Notify me when course is available" button above - we will notify you when the first chapter will be released on it :)

Cheers!

|

no Worries. Is there an older version of this one?

|

Hey Marcos,

Unfortunately, there's no one. Though you can try to search on SymfonyCasts for specific topics you're interested in, just in case we have it covered in an older course already.

Cheers!

|

Delete the comment?

Share this comment

astronaut with balloons in space

"Houston: no signs of life"
Start the conversation!