Click here to Skip to main content
16,017,907 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
Hello Guys,

Using VS2010 Ultimate. I am able to create unit test, generate test script, and execute it manually.

Question:
Is it possible to trigger the unit test execution programmatically instead of manually doing it in visual studio?

I am not a tester though, was just assigned to research on this.
thanks in advance.

More Info
I have website probject
I have Test Project (inside of the test project it loads the website and do unit testing)

Right now, the only way to execute unit test is via visual studio 2010 when you go to Test View tab and click the run selection icon.

Is there any way to do it programmatically instead of doing it using visual studio 2010?
Posted
Updated 18-Jan-12 21:44pm
v4
Comments
Sergey Alexandrovich Kryukov 19-Jan-12 3:21am    
The question is not clear at all. Everything is always executed at runtime, a test or not.
--SA
Jephunneh Malazarte 19-Jan-12 3:33am    
runtime means executing it programmatically.
Sergey Alexandrovich Kryukov 19-Jan-12 21:27pm    
Yes, but everything is executed at runtime. What's so special about tests?
--SA
Jephunneh Malazarte 19-Jan-12 3:34am    
here is my question in case you missed.
Is it possible to trigger the unit test execution programmatically instead of manually doing it in visual studio?
Sergey Alexandrovich Kryukov 19-Jan-12 21:28pm    
Nothing is done "manually". When you do it, you still run the test during run-time.
--SA

1 solution

 
Share this answer
 
Comments
Jephunneh Malazarte 19-Jan-12 6:28am    
ey rahul thanks for that one, i don't know yet how to use tcm but it's a good start :) 5! really helpful. really appreciate ur help man :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900