# Issue with dotnet Test target

**URL:** https://www.finalbuilder.com/forums/t/issue-with-dotnet-test-target/7322
**Category:** Bugs
**Created:** [January 13, 2023, 10:22am UTC](https://www.finalbuilder.com/forums/t/issue-with-dotnet-test-target/7322 "2023-01-13T10:22:41Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![brian\_thomas](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/b/3e96dc/32.png) [@brian\_thomas](https://www.finalbuilder.com/forums/u/brian_thomas)
#### Post date: [January 13, 2023, 10:22am UTC](https://www.finalbuilder.com/forums/t/issue-with-dotnet-test-target/7322/1 "2023-01-13T10:22:42Z")

</div>

I’m using FB 8.0.0.3127

- Add a **dotnet Test** action to the build script.
- Specify a value for its **Results directory** field
- Run the build.
- FinalBuilder constructs a `dotnet test` command line that contains the `--results-directory` switch but it doesn’t put the expected value afterwards so the build fails

Here’s a sample command line, from the build log:

`Command Line : test T:\Development\FB17249-032\AutoBuild\..\EmailHelper\EmailHelperUnitTests\EmailHelperUnitTests.csproj --test-adapter-path \\kutana.local\dev\NuGet\Repository\xunitxml.testlogger\3.0.70 --configuration xunit;LogFilePath=TestOutput\Results.xml --output T:\Development\FB17249-032\AutoBuild\..\EmailHelper\UnitTestBin --results-directory`

and here’s the error message:

`Required argument missing for option: --results-directory`

If the **Results directory** field is blank then the `--results-directory` switch is omitted from the dotnet test command line and the build succeeds.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [January 13, 2023, 10:50pm UTC](https://www.finalbuilder.com/forums/t/issue-with-dotnet-test-target/7322/2 "2023-01-13T22:50:31Z")

</div>

Hi Brian

Thanks for reporting it - this build has a fix for this issue

[https://downloads.finalbuilder.com/downloads/finalbuilder/800/FB800\_3147.exe](https://downloads.finalbuilder.com/downloads/finalbuilder/800/FB800_3147.exe)

---

<div class="post-metadata">

### Author: ![brian\_thomas](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/b/3e96dc/32.png) [@brian\_thomas](https://www.finalbuilder.com/forums/u/brian_thomas)
#### Post date: [January 17, 2023, 6:08pm UTC](https://www.finalbuilder.com/forums/t/issue-with-dotnet-test-target/7322/3 "2023-01-17T18:08:16Z")

</div>

Many thanks Vincent!
