Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Unit test failed to execute after upgrading NUnit3-VS-Adapter from 4.3.1 to 4.4.0 #1825

Closed
kbeaugrand opened this issue Mar 1, 2023 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@kbeaugrand
Copy link
Member

Expected Behavior

While upgrading the nuget package, the tests should still work.

Current Behavior

NUnit failed to load the tests.
An issue is created at (https:/nunit/nunit3-vs-adapter/issues/1070)[https:/nunit/nunit3-vs-adapter/issues/1070]

Steps to Reproduce

N/A

Context (Environment)

Portal version: N/A
LoRaWAN Stack version: N/A

Logs

Build started 02/2[7](https:/CGI-FR/IoT-Hub-Portal/actions/runs/4286108441/jobs/7465242392#step:9:8)/2023 19:31:40.
     1>Project "/home/runner/work/IoT-Hub-Portal/IoT-Hub-Portal/src/AzureIoTHub.Portal.sln" on node 1 (VSTest target(s)).
     1>ValidateSolutionConfiguration:
         Building solution configuration "Debug|Any CPU".
Test run for /home/runner/work/IoT-Hub-Portal/IoT-Hub-Portal/src/AzureIoTHub.Portal.Tests.Unit/bin/Debug/net7.0/AzureIoTHub.Portal.Tests.Unit.dll (.NETCoreApp,Version=v7.0)
Microsoft (R) Test Execution Command Line Tool Version 17.5.0 (x64)
Copyright (c) Microsoft Corporation.  All rights reserved.

Starting test execution, please wait...
A total of 1 test files matched the specified pattern.
NUnit Adapter 4.4.0.0: Test execution started
Running all tests in /home/runner/work/IoT-Hub-Portal/IoT-Hub-Portal/src/AzureIoTHub.Portal.Tests.Unit/bin/Debug/net7.0/AzureIoTHub.Portal.Tests.Unit.dll
   NUnit failed to load /home/runner/work/IoT-Hub-Portal/IoT-Hub-Portal/src/AzureIoTHub.Portal.Tests.Unit/bin/Debug/net7.0/AzureIoTHub.Portal.Tests.Unit.dll
NUnit Adapter 4.4.0.0: Test execution complete
No test is available in /home/runner/work/IoT-Hub-Portal/IoT-Hub-Portal/src/AzureIoTHub.Portal.Tests.Unit/bin/Debug/net7.0/AzureIoTHub.Portal.Tests.Unit.dll. Make sure that test discoverer & executors are registered and platform & framework version settings are appropriate and try again.
Results File: /home/runner/work/IoT-Hub-Portal/IoT-Hub-Portal/src/AzureIoTHub.Portal.Tests.Unit/TestResults/_fv-az362-[8](https:/CGI-FR/IoT-Hub-Portal/actions/runs/4286108441/jobs/7465242392#step:9:9)14_2023-02-27_1[9](https:/CGI-FR/IoT-Hub-Portal/actions/runs/4286108441/jobs/7465242392#step:9:10)_31_47.trx

     1>Done Building Project "/home/runner/work/IoT-Hub-Portal/IoT-Hub-Portal/src/AzureIoTHub.Portal.sln" (VSTest target(s)).

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:07.[23](https:/CGI-FR/IoT-Hub-Portal/actions/runs/4286108441/jobs/7465242392#step:9:24)

Additional Information

@kbeaugrand kbeaugrand added bug Something isn't working help wanted Extra attention is needed labels Mar 1, 2023
@kbeaugrand
Copy link
Member Author

Tested locally with the release 4.4.1 (pre-release). This works on my computer now.
We will have to wait until the official release to accept the bump.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
Status: 📝 Todo
Development

No branches or pull requests

1 participant