-
Notifications
You must be signed in to change notification settings - Fork 262
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
TestFx 2.2.0-preview won't discover or run tests on VS16.8 #748
Comments
@Sanan07 Imho this is what you added. Are you protecting somehow against not having that type available? |
I am aware of this bug. I have protection on Test Platform side, where it checks if the assembly has the attribute, so it loads specific types, otherwise load all types. Problem here with testfx. It uses old My suggestion to @Haplois was to update Test Platform on older VS versions, but he wants to find more elegant solution. |
Well you introduced that change into testfx to make loading it faster in the new version, I don't see why it would be expected to break this when used with older version, so imho this is a bug that should be solved. We should in the end implement the same in xunti and nunit and I don't think they would be happy about this breaking. |
I did changes inside ObjectModel in TP and use it in testfx. In older VS version we do not have that new classes introduced in TP, that why it is breaking. |
We need think how can we release testfx to avoid this type of exception. Problem occurs when you use VS which does not have TP version which contains specific logic which we use inside testfx. |
This problem is not about one simple change. Since we started updating the TestPlatform and referencing it from TestFx, any change can be breaking. If we want to be able to update TestPlatform without breaking anything, this needs to be addressed. I was chatting with @jfleisher yesterday; he is looking into it from TestWindow'ss perspective; maybe something can be done there and retroactively fixed in older versions. Also, I like to point out that this doesn't fail when using NETCoreApp, since we're referencing |
We decided to start by altering the changes introduced with #746 to make the changes non-breaking in older versions of Visual Studio and Test Platform. We'll start by removing the assembly level attribute. After that, we'll move the FQN changes out of the "ObjectModel" assembly. |
This partially fixed with #753 and microsoft/vstest#2674. |
Description
TestFx won't discover or run tests on
.Net Framework 4.7
when using Visual Studio 16.8.Steps to reproduce
.Net Framework 4.7
.MSTest.TestAdapter
andMSTest.TestFramework
to version2.2.0-preview-20201126-03
.Expected behavior
Tests are discovered and ran.
Actual behavior
Environment
Visual Studio v16.8.0
The text was updated successfully, but these errors were encountered: