# NUnit

<figure><img src="https://1326643208-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnpMhTPhBTwVaw7bZVBjY%2Fuploads%2F9q8OyA8exwNoKyhpC4Zp%2FNunit_logo_250.png?alt=media&#x26;token=322ee3bc-9b44-4a0c-b822-ce4a9a26d483" 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**](https://docs.testfiesta.com/automation/tacotruck-cli)
* [Tacotruck Github Action](https://github.com/testfiesta/tacotruck-action)
