> 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/it/automazione/tests.md).

# Test

{% hint style="info" %}
Questa funzionalità richiede una [licenza](/powershell-universal/it/licensing.md).
{% endhint %}

PowerShell Universal si integra con il framework di test [Pester ](https://pester.dev/)per consentirle di eseguire suite di test e visualizzarne i risultati. I risultati sono archiviati nel database di PowerShell Universal, così può visualizzare i risultati storici.

Può lavorare con i test visitando Automation \ Tests.

## Rilevamento dei test

I file di test vengono individuati in base al nome del file. Tutti i file trovati nel repository che terminano con `.Tests.ps1` saranno elencati nella scheda Test Files. Può creare nuovi file di test nella pagina Automation \ Scripts.

<figure><img src="/files/6aqJkv24azCoyhoCFC8M" alt=""><figcaption><p>File di test</p></figcaption></figure>

## Esecuzione dei test

{% hint style="info" %}
Per eseguire i test è necessario installare Pester v5 o versione successiva.
{% endhint %}

I test possono essere eseguiti facendo clic sui pulsanti Run Test o Run All Tests. Run Test eseguirà i singoli file di test e Run All Tests eseguirà tutti i file di test.

Avrà la possibilità di selezionare l'ambiente, la credenziale e il computer su cui eseguire i test.

<figure><img src="/files/COfnGKin3hOEb7g9wM6g" alt=""><figcaption><p>Esecuzione dei test</p></figcaption></figure>

## Risultati dei test

I risultati dei test vengono prodotti al termine dell'esecuzione dei test. Potrà vedere lo stato complessivo dell'esecuzione dei test e il risultato delle singole suite e dei singoli casi di test.

<figure><img src="/files/WPeupdUbSHfIqLA2a8PK" alt=""><figcaption><p>Risultati dei test</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/it/automazione/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.
