-
Notifications
You must be signed in to change notification settings - Fork 105
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
Replaced Mono.Cecil #454
Replaced Mono.Cecil #454
Conversation
The reason for moving to Mono.cecil is here: nunit/nunit3-vs-adapter #183 @jnm2 I locally merged the two other PRs, and I'm now looking at the branch jnm/replace_Cecil. I now see that the tests are no longer showing up in Visual Studio. We had the adapter as a package included, but I can't see it anymore. It's deletion might have slipped in my review of the changes. |
For me, this was because I had the 3.9 VSIX installed and it overrides any adapter-as-package in all projects. This is the last time you'll have to do this, but you'll need to disable the 3.9 VSIX in order to test this locally. I deleted the the NUnit3TestAdapter 3.9 NuGet package reference for two reasons:
I'll do the merge and comment on the issues. |
10a6c38
to
446f36a
Compare
This was mainly what #450 was about. A central point is that using self-executing tests isn't really what we want to test. The same point applies to running using NUnit Console. On the practical side, you can use |
I didn't remove any tests, so I preserved this behavior. Tests: nunit3-vs-adapter/src/NUnitTestAdapterTests/NavigationDataTests.cs Lines 50 to 51 in 446f36a
Implementation: nunit3-vs-adapter/src/NUnitTestAdapter/NavigationDataProvider.cs Lines 60 to 66 in 446f36a
Also, this behavior was preserved: #315 (Support base-class tests from external assemblies): nunit3-vs-adapter/src/NUnitTestAdapterTests/NavigationDataTests.cs Lines 57 to 62 in 446f36a
|
@OsirisTerje I really appreciate your thoroughness here.
I haven't seen this issue yet. Let me add tests and see what can be done. |
I just had to remind myself of the instructions I added to the readme:
https://github.com/nunit/nunit3-vs-adapter/blob/master/README.md#developing |
@OsirisTerje Added two commits testing and fixing nunit/nunit-vs-adapter#6. There are no outstanding issues that I know of, so, back to you. 😊 |
Hey! Not being pushy, glad to see this fixed, but any idea when this'll be pushed to nuget? If this fixes the mono cecil throw then it would be great to use :) Went back to test #371 and got the same issue @jons-aura got (I could build locally, but don't want to send it to all of our developers and have them reference that as a temporary fix) |
I'll let @OsirisTerje answer that, but in the meantime you can merge this with your nuget.config and use version <?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="NUnit prerelease" value="https://www.myget.org/F/nunit/api/v3/index.json" />
</packageSources>
</configuration> |
We'll try to get it out real soon now, hopefully during the upcoming weekend, but we would also really appreciate some testing up front. So if you (@Dispersia ) could add the link @jnm2 shows above and take it for a run, see if all works as it should, we would be grateful. There are some changes here, and it needs some test runs. |
Confirmed, works perfectly for me, thanks for the fixes guys :) (no mono cecil throw and get profiling like expected) |
I messed up the link there for the nuget.config (fixed). |
Fixes #296! 🎉
Everything is finished and just waiting on the merge of PRs #450 and #453!
NB: Rather than looking at the branch diff, please review each commit below the ——TEST MERGE—— lines individually. There are 12 commits, some large, so it'll probably make the most sense that way anyway. I will rebase onto master once the dependency PRs are in master.