-
Notifications
You must be signed in to change notification settings - Fork 987
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
Add initial interop testing framework #1932
Conversation
src/System.Windows.Forms/tests/InteropTests/TestDll/WebBrowserSiteBaseInteropTests.cpp
Outdated
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## master #1932 +/- ##
====================================================
- Coverage 65.14931% 26.80870% -38.34061%
====================================================
Files 1328 855 -473
Lines 489778 266794 -222984
Branches 40042 37916 -2126
====================================================
- Hits 319087 71524 -247563
- Misses 165265 190162 +24897
+ Partials 5426 5108 -318
|
src/System.Windows.Forms/tests/UnitTests/InteropTests/testhelpers.h
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/tests/UnitTests/InteropTests/WebBrowserSiteBaseInteropTests.cpp
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/tests/UnitTests/InteropTests/WebBrowserSiteBaseInteropTests.cpp
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/tests/UnitTests/InteropTests/WebBrowserSiteBaseInteropTests.cpp
Outdated
Show resolved
Hide resolved
Waiting on dotnet/arcade#4533. Does anyone know how I can pull in a PR build of aracde so I can test getting this working with the new SDK? Do I have to have a local build, maybe |
src/System.Windows.Forms/tests/UnitTests/InteropTests/testhelpers.h
Outdated
Show resolved
Hide resolved
Just to confirm, is this work addressing #1817? |
It makes a start by adding a limited set of tests. Mostly the PR is designed to setup the infrastructure for adding more tests in the future |
YAY! dotnet/arcade has merged the change we need. Now we need the latest version of arcade (#3134) and we can get this PR out of WIP!! |
Looks like the latest build of arcade still isn't out :) |
Okee dokee, we have progress! I've rebased the PR onto the latest master, which has However we now have the following error in build:
I suspect it is because we're building the c# test project as Also I would add it wasn't clear that I had to include |
Yeah sadly adding to the path doesn’t seem to work anymore now that we init the tools only once. It may be possible that the path changed. Will Check after my exam today |
Lets see if a similar change to 32eaa68 changing from |
This comment has been minimized.
This comment has been minimized.
9cacc7a
to
d64a50a
Compare
@RussKie could you take another look at this? |
@vatsan-madhavan any further concerns? |
lgtm. |
I'm probably with the least of knowledge in this area here. Everyone seem to give thumbs up, and the build is green, so A massive feat, thank you 🚀 |
Nice job @hughbe! |
This comment has been minimized.
This comment has been minimized.
Igor what is your version of cmake (cmake --version)? This looks similar to dotnet/runtime#660 so perhaps updating your cmake might work |
I'm also on the internal preview of VS Version 16.8.0 Preview 2.0 [30324.147.master].... 🤔 |
I have updated VS and rebooted... No joy.
|
Sometimes I see this problem in VS too. |
I think I had a headway. I found cmake.exe and a cmake folder in winforms\.tools\native\bin folder. cmake.exe was dated 10 Jul 2020, and the folder had cmake 3.14.2... I have also nuked the whole .tools folder, and it seemed to make no difference to the build ¯\_(ツ)_/¯ |
VS can't find cmake, so we'll need to tweak In mean time I solved it by installing cmake globally: |
See https://aka.ms/vs/workloads - Microsoft.VisualStudio.Component.VC.CMake.Project Can you add that to your VS installation and then try again ? Once you've figured out a min-set of workloads needed to build dotnet/winforms, document it like this. |
Thank you @vatsan-madhavan, I knew it was possible just didn't know how. |
Proposed Changes
@JeremyKuhne @RussKie @zsd4yr
Microsoft Reviewers: Open in CodeFlow