> For the complete documentation index, see [llms.txt](https://docs.decentraland.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.decentraland.org/contributor/contributor-es/guias-para-colaboradores/testing-standards.md).

# Estándares de pruebas

Esta sección describe la forma en que se realizan las pruebas en los distintos servicios y UIs de los proyectos de Decentraland.

Las palabras clave "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY" y "OPTIONAL" en este documento deben interpretarse como se describe en [RFC 2119](https://datatracker.ietf.org/doc/html/rfc2119).

## Descripción general

Las pruebas son una parte crítica de nuestro proceso de desarrollo. Mantenemos altos estándares de cobertura y calidad de las pruebas en todos nuestros proyectos. Esta documentación proporciona guías completas para:

* [**Escritura de pruebas**](/contributor/contributor-es/guias-para-colaboradores/testing-standards/writing-tests.md) - Principios y patrones generales para escribir pruebas mantenibles y claras
* [**Pruebas de UIs**](/contributor/contributor-es/guias-para-colaboradores/testing-standards/testing-uis.md) - Probar componentes de React, sagas de Redux, reducers, selectors y action creators
* [**Servicios de prueba (Well-Known-Component)**](/contributor/contributor-es/guias-para-colaboradores/testing-standards/testing-services-wkc.md) - Probar servicios modulares construidos con la arquitectura well-known-component
* [**Pruebas de Services (obsoleto)**](/contributor/contributor-es/guias-para-colaboradores/testing-standards/testing-services-deprecated.md) - Enfoque heredado para probar servicios (como referencia)
* [**Pruebas end-to-end**](/contributor/contributor-es/guias-para-colaboradores/testing-standards/testing-e2e.md) - Pruebas E2E con Cypress (en progreso)

## Filosofía de pruebas

Nuestro enfoque de pruebas hace hincapié en:

* **Claridad** - Las pruebas deben ser autoexplicativas y fáciles de entender
* **Mantenibilidad** - Las pruebas deben ser fáciles de actualizar cuando cambian los requisitos
* **Aislamiento** - Cada prueba debe ejecutarse de forma independiente sin afectar a las demás
* **Cobertura** - Deben probarse todos los flujos críticos y casos límite
* **Valor** - Las pruebas deben dar confianza de que el código funciona como se pretende

## Enlaces rápidos

* [Cómo describir contextos con `describe`](/contributor/contributor-es/guias-para-colaboradores/testing-standards/writing-tests.md#describing-and-building-context)
* [Cómo escribir expectativas con `pruebas`](/contributor/contributor-es/guias-para-colaboradores/testing-standards/writing-tests.md#describing-expectations-and-executing-code)
* [Qué probar y cuándo](/contributor/contributor-es/guias-para-colaboradores/testing-standards/writing-tests.md#what-to-test)
* [Cuándo y cómo mockear](/contributor/contributor-es/guias-para-colaboradores/testing-standards/writing-tests.md#when-to-mock)

## Estándares relacionados

* [Gestión de dependencias](/contributor/contributor-es/guias-para-colaboradores/dependency-management.md) - Gestión de dependencias npm y peerDependencies
* [Estándares de UI](https://github.com/decentraland/docs/tree/main/contributor/contributor-guides/ui-standards/README.md) - Patrones de Redux y RTK Query
* [Documentación de la API](/contributor/contributor-es/guias-para-colaboradores/api-documentation.md) - Estándares de documentación de OpenAPI


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.decentraland.org/contributor/contributor-es/guias-para-colaboradores/testing-standards.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
