> For the complete documentation index, see [llms.txt](https://docs.testfiesta.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.testfiesta.com/automation/testing-tools/.net/nunit.md).

# NUnit

<figure><img src="/files/bSVnSImIocpvIgOrE2LG" alt=""><figcaption></figcaption></figure>

NUnit is a unit-testing framework for all .NET languages. NUnit can be used for a wide range of testing, from unit testing with TDD to full fledged system and integration testing. Nunit can generate standard format JUnit-style XML files which can be  submited  to Testfiesta or Testrail using taco truck cli. You just need to install the popular [`Nunit`](http://nunit.org/nunitv2/docs/2.6.2/quickStart.html)  and install tacotruck cli or use [Github action](https://github.com/testfiesta/tacotruck-action). Check out simple NUnit [example](https://github.com/testfiesta/tacotruck-examples/tree/main/demo-dotnet-nunit-tf).

### Configuration

To generate xml file report  of the test logger and log file path should be included in command&#x20;

```sh
dotnet test --logger:"junit;LogFilePath=../test-results.xml"
```

### Install Tacotruck CLI

{% code overflow="wrap" fullWidth="false" %}

```sh
$ npm install -g @testfiesta/tacotruck
```

{% endcode %}

### Submit test results

{% tabs %}
{% tab title="Testfiesta" %}

```sh
tacotruck testfiesta \
  run:submit \
  --token testfiesta_... \
  --handle orgHandle \
  --key projectKey \
  --name runName \
  --data results-path/*.xml
```

{% endtab %}
{% endtabs %}

### Support and Resources

* [TacoTruck Examples](https://github.com/testfiesta/tacotruck-examples)
* [NUnit Docs](https://docs.nunit.org/)
* [Tacotruck Issues](https://github.com/testfiesta/tacotruck/issues)
* [**CLI Reference**](/automation/tacotruck-cli.md)
* [Tacotruck Github Action](https://github.com/testfiesta/tacotruck-action)
