-
-
Notifications
You must be signed in to change notification settings - Fork 78
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
Test Explorer: No suitable test runtime provider was found #1129
Test Explorer: No suitable test runtime provider was found #1129
Comments
I can reproduce, something weird somewhere! Tried to clean the solution, remove the addition, rebuild and it's just the very first time it seems to work. Will continue to investigate a bit to try to find, at least some way to go around it. |
@bytewizer, found a way to have it working all the time. See below, give it a try and let me know. <TargetFrameworkVersion>net48</TargetFrameworkVersion> seems like Framework40 or net40 is a "bit" old now and for some reasons doesn't work properly all the time. @josesimoes we may want to test this change on other libs. |
I wish I was celebrating too. Unfortunately, this fix is not working for me. I have following the exact step and copied the string above into the nano.runsettings. I have cleaned the project, deleted system created files, restarted my system and several combinations of this. However, I’m getting the exact same message. I have also tried it with and without the TestContainer removed. I’m really not sure why this is not working. |
No enterily sure about that... Because that's specifying the framework of the test adapter, not the assembly under test. |
I'm starting to feel like a troublemaker. Unfortunately, now when I fork the project with the updated bits, it fails the very first time I run it with the exact same message. I did double check that I see the change you made to the project are in fact the files I'm working with. I've tried to delete/clean every visual studio temp file I can find (or google recommends). I even tried to make a new test file and copied all of the code over to that test file one at a time and nothing looks to make any sort of difference on it. If you think doing a clean install of windows 10 and a fresh Visual Studio install, it's something I would consider this weekend. |
@bytewizer, before going for the Armageddon solutin, if you create a brand new project, a simple lib, add a test project, will this very simple setup works fine? |
@bytewizer did you manually erase the .vs folder? That's where the details and configs go. |
@Ellerbach Ok, here is something interesting. If I create/add a test project from a solution it works fine. However, If I open Visual Studio and chose 'create a new project' and select Unit Test Project(.NET nanoFramework) I get the following error: From this I tried to uninstall the extension and reinstall it but same results trying to both create a new test project and running the tests. @josesimoes I'm not seeing a .vs folder as I've been deleting the 'nanoframework.DependencyInjector' folder and doing a new fork this way I'm only bringing the exact files from the repo. Also, I have tried to open and close the project but unfortunately no success. |
@bytewizer that error is with the VSIX packaging. Will look ASAP! As for the .vs solution it's local, created by VS when opening a solution. Not under version control. |
@bytewizer new VS extension published with the above fixed. |
@bytewizer thanks again for your help and for the investigation! Simple things are usually great to catch big issues :-D |
More details on this:
I'll be updating our test framework to reference that new version and lets see if this get's working smoothly again in Test Explorer. |
nanoFramework Test Framework v2.0.42 update to reference VSTest v17.3.1. Note that for auto detection of the Test Adapter the run settings file has to be named Feel free to reopen if there are any further issues. |
Tool
Visual Studio extension
Description
After installing Microsoft Visual Studio Professional 2022 (64-bit) Version 17.3.1 and updating to the latest .NET nanoFramework Extension Version: 2022.2.0.33 Test Explorer will fail with a 'No suitable test runtime provider was found' error message.
Failed Log:
Successful Log:
How to reproduce
Expected behaviour
This should work as expected and all tests will pass.
Screenshots
No response
Aditional context
Microsoft Visual Studio Professional 2022 (64-bit) Version 17.3.1
.NET nanoFramework Extension Version: 2022.2.0.33
The text was updated successfully, but these errors were encountered: