pex 0.18 and vs2010 test problem
- Hello guys
ive been using pex with the vs2010 ultimate test tools and ive been having some problems,
first of all when i open my test settings i get the following message printed in the "Test" ouput window:
Error initializing the Hosts page of the test settings dialog box: The host type 'Pex' cannot be loaded for the following reason: The 'EditorType' setting is empty or missing.
then when i run the tests pex generated with the vs test menu (Tests > run > All tests in solution)
all the tests that use the pex host fails with this error:
Unit Test Adapter threw exception:
Unable to cast object of type 'Microsoft.Pex.VsHost.Host.SafeRunContext' to type 'Microsoft.VisualStudio.TestTools.Utility.IRemoteDataProvider'.
ive noted that the pex assemblies doesnt seem to be in the gac for some reason, perhaps thats the problem?
running win7 32bit, no other vs version other than 2010 beta 2 is installed, i did a fresh os install before installing beta2 so there shouldnt be any parts of beta1 remaining
Answers
- Hi All,
The first bug is actually a feature. We do not provide an editor type, which is allowed by MSTest and non-lethal. The second issue is a bug due to a breaking change in the way MSTest executes tests in VS2010 ***.
We are actively working on the next version of Pex that will bring support for .NET 4.0 and VS2010 Beta2. There are actually a number of changes in the runtime that impact Pex (have you ever heard of Conditional APTCA?).
*** We wrap the IRunContext passed by MSTest into our own implementation but it turns out that it now implements a new (internal) interface IReomteDataProvider.
Jonathan "Peli" de Halleux - Give us your input about Pex!- Marked As Answer byaL3891 Friday, October 30, 2009 1:22 PM
- http://blogs.rev-net.com/ddewinter/2009/05/27/hosting-conditional-aptca-assemblies/
Jonathan "Peli" de Halleux - Give us your input about Pex!- Marked As Answer byaL3891 Saturday, October 31, 2009 11:22 AM
All Replies
- Hi All,
The first bug is actually a feature. We do not provide an editor type, which is allowed by MSTest and non-lethal. The second issue is a bug due to a breaking change in the way MSTest executes tests in VS2010 ***.
We are actively working on the next version of Pex that will bring support for .NET 4.0 and VS2010 Beta2. There are actually a number of changes in the runtime that impact Pex (have you ever heard of Conditional APTCA?).
*** We wrap the IRunContext passed by MSTest into our own implementation but it turns out that it now implements a new (internal) interface IReomteDataProvider.
Jonathan "Peli" de Halleux - Give us your input about Pex!- Marked As Answer byaL3891 Friday, October 30, 2009 1:22 PM
- i see,
i have for some reason not heard of Conditional APTCA but it sounds thrilling yet complicated ;)
feel free to elaborate if you have the time, but im just curious so you dont have to
-edit-
found it myself,
http://blogs.rev-net.com/ddewinter/2009/05/21/the-allowpartiallytrustedcallersattribute-aptca-6/ - http://blogs.rev-net.com/ddewinter/2009/05/27/hosting-conditional-aptca-assemblies/
Jonathan "Peli" de Halleux - Give us your input about Pex!- Marked As Answer byaL3891 Saturday, October 31, 2009 11:22 AM


