ClassInitializeAttribute not correctly implemented for VSTS tests
First of all, congratulations! We've been waiting for this for a long time!
Now, on to business...
The signature of one time setup methods, attributed with ClassInitializeAttribute,
must be
public static void OneTimeSetup(TestContext context)
If you run this test class in your test runner it works successfully:
public void TestClass
{
public void OneTimeSetup() {}
public void TestMethod() {}
}
If you run the same test in the VSTS runner it fails with an error about
an improper signature on OneTimeSetup.
bab
Please sign in to leave a comment.
Thank you very much for the feedback.
MSDN has no documentation yet for the TeamTest attributes.
Please could you post such request to our tracker futher?
This will guarantee that the bug report will not be missing by the
corresponding developer.
--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Brian Button" <bbutton@agilestl.com> wrote in message
news:885f1f9bb7d228c75a89bd73a7d9@news.jetbrains.com...
>
>
>
>
>
>
>
>
>
>
>
>
Please, could you give me link to some documentation about these attributes
anf their usage? MSDN gives nothing :(
--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Brian Button" <bbutton@agilestl.com> wrote in message
news:885f1f9bb7d228c75a89bd73a7d9@news.jetbrains.com...
>
>
>
>
>
>
>
>
>
>
>
>
It looks like this still has not been implemented in the latest ReSharper 5.0 beta versions. Are there any plans to have this fixed as I cannot run any of our database-related tests? Here's the information that was originally requested back a few years ago.
http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.testtools.unittesting.classinitializeattribute%28VS.80%29.aspx
Thanks,
Derek