What version of unit is installed

its.the.doc's Avatar


13 Feb, 2019 07:37 AM

I'm having issues with nunit tests not running serially. This is a bug in some versions of NUnit3. I'm wondering which version of nunit3 is being used?

For this to work properly I believe I'd need 3.9 or greater.

  1. 1 Posted by its.the.doc on 13 Feb, 2019 07:39 AM

    its.the.doc's Avatar

    This breaks my tests, as they're only able to run serially due to the library I'm testing.

    Running serially works properly locally. I'm using 3.12 locally.

  2. Support Staff 2 Posted by Owen McDonnell on 13 Feb, 2019 03:47 PM

    Owen McDonnell's Avatar

    You can see currently installed version here. It is 3.7.0.
    You could try choco upgrade nunit-console-runner command. (https://chocolatey.org/packages/nunit-console-runner)

  3. 3 Posted by its.the.doc on 14 Feb, 2019 02:24 AM

    its.the.doc's Avatar

    `nunit-console-runner is not installed. Installing...`

    `nunit-console-runner package files upgrade completed.`


    ```Discovering tests...OK
    nunit3-console "C:\projects\octgn-communication\Octgn.Communication.Test\bin\Release\Octgn.Communication.Test.dll"
    NUnit Console Runner 3.7.0```

    Doesn't look like it actually uses the chocolatey installed version

  4. 4 Posted by its.the.doc on 14 Feb, 2019 08:57 PM

    its.the.doc's Avatar

    Any ideas?

  5. Support Staff 5 Posted by Ilya Finkelshte... on 14 Feb, 2019 09:17 PM

    Ilya Finkelshteyn's Avatar

    Try this script instead of choco. Also I would recommend placing it into install staged instead of init one.

    Write-Host "Installing NUnit 3.9.0..." -ForegroundColor Cyan -NoNewline
    [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
    $nunitPath = "$env:SYSTEMDRIVE\Tools\NUnit3"
    Remove-Item $nunitPath -Recurse -Force
    # nunit
    $zipPath = "$($env:TEMP)\NUnit.Console-3.9.0.zip"
    (New-Object Net.WebClient).DownloadFile('https://github.com/nunit/nunit-console/releases/download/v3.9/NUnit.Console-3.9.0.zip', $zipPath)
    7z x $zipPath -y -o"$nunitPath" | Out-Null
    del $zipPath
    # logger
    $zipPath = "$($env:TEMP)\Appveyor.NUnit3Logger.zip"
    (New-Object Net.WebClient).DownloadFile('https://www.appveyor.com/downloads/Appveyor.NUnit3Logger.zip', $zipPath)
    7z x $zipPath -y -o"$nunitPath\addins" | Out-Null
    Move-Item "$nunitPath\addins\appveyor.addins" "$nunitPath\appveyor.addins"
    Remove-Item $zipPath -Force
    Remove-Path "$nunitPath\bin"
    Add-Path "$nunitPath"
    Write-Host "NUnit 3.9.0 installed" -ForegroundColor Gree
  6. 6 Posted by its.the.doc on 04 Mar, 2019 03:22 AM

    its.the.doc's Avatar

    That seemed to work Thanks.

  7. Owen McDonnell closed this discussion on 04 Mar, 2019 06:30 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac