> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/powershell-universal/es/automatizacion/tests.md).

# Pruebas

{% hint style="info" %}
Esta función requiere una [licencia](/powershell-universal/es/licensing.md).
{% endhint %}

PowerShell Universal se integra con el marco de pruebas [Pester ](https://pester.dev/)para permitirle ejecutar conjuntos de pruebas y ver los resultados. Los resultados se almacenan en la base de datos de PowerShell Universal, de modo que puede consultar los resultados históricos.

Puede trabajar con las pruebas visitando Automation \ Tests.

## Detección de pruebas

Los ficheros de prueba se localizan en función del nombre del fichero. Todos los ficheros encontrados en el repositorio que terminen en `.Tests.ps1` se mostrarán en la pestaña Test Files. Puede crear nuevos ficheros de prueba en la página Automation \ Scripts.

<figure><img src="/files/RJXeaUFYyo1LcAMEJYsN" alt=""><figcaption><p>Ficheros de prueba</p></figcaption></figure>

## Ejecución de pruebas

{% hint style="info" %}
Es necesario instalar Pester v5 o posterior para ejecutar pruebas.
{% endhint %}

Las pruebas se pueden ejecutar haciendo clic en los botones Run Test o Run All Tests. Run Test ejecutará los ficheros de prueba individuales y Run All Tests ejecutará todos los ficheros de prueba.

Tendrá la opción de seleccionar el entorno, la credencial y el ordenador en los que ejecutar las pruebas.

<figure><img src="/files/RQdnbBiY7TPqD2kIwox5" alt=""><figcaption><p>Ejecutar pruebas</p></figcaption></figure>

## Resultados de las pruebas

Los resultados de las pruebas se generan una vez finalizada la ejecución de las pruebas. Podrá ver el estado general de la ejecución de las pruebas y el resultado de cada conjunto y caso de prueba individual.

<figure><img src="/files/oFNmHsX7UPBQH3opljQl" alt=""><figcaption><p>Resultados de las pruebas</p></figcaption></figure>


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.devolutions.net/powershell-universal/es/automatizacion/tests.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
