I have 400+ unit test cases which are working properly in vs 2013 after build solution. But when other developer take clone from git and open it in vs 2015 then run all test cases there are randomly few test cases are passed and other are failed. All test
cases passed in vs 2013 but with vs 2015 few of them (e.g. 10 or 11) test cases passed and then other all are become failed.
Note : At every time in VS 2015 only 10 random test cases are passed and other are failed.
So is this any permission issue in Vs 2015?
Thanks,
Jack
IF POST USEFUL THAN MARK AS ANSWER
mit's Website Mitesh N Vaishnav
Make sure you use latest versions of testing libraries. If you think there are issues with permissions then try to run VS2015 in administrative permissions.
Don't forget to mark solution providing post as "Answered".
If your solution is in a protected drive that you need administrator access to read/write, sometimes only a portion of the tests come up. Definitely run VS as administrator in that case.
If your solution is 64 bit, make sure that Test > Test Settings > Default Processor Architecture is set to x64. Sometimes it gets set to x86. Set it to x64, then rebuild.
Sometimes just restarting Visual Studio does the trick because the test explorer will start up again.
Don't forget to actually build the test project/solution
Member
655 Points
914 Posts
Unit test cases working on vs 2013 but failure in vs 2015 enterprise edition
Nov 07, 2016 08:19 AM|Jack Hunt|LINK
Hi Experts,
I have 400+ unit test cases which are working properly in vs 2013 after build solution. But when other developer take clone from git and open it in vs 2015 then run all test cases there are randomly few test cases are passed and other are failed. All test cases passed in vs 2013 but with vs 2015 few of them (e.g. 10 or 11) test cases passed and then other all are become failed.
Note : At every time in VS 2015 only 10 random test cases are passed and other are failed.
So is this any permission issue in Vs 2015?
Thanks,
Jack
mit's Website
Mitesh N Vaishnav
Contributor
4050 Points
1004 Posts
MVP
Re: Unit test cases working on vs 2013 but failure in vs 2015 enterprise edition
Nov 07, 2016 08:45 AM|DigiMortal|LINK
Make sure you use latest versions of testing libraries. If you think there are issues with permissions then try to run VS2015 in administrative permissions.
Also visit my ASP.NET blog or follow me @ Twitter:twitter.com/gpeipman
Member
655 Points
914 Posts
Re: Unit test cases working on vs 2013 but failure in vs 2015 enterprise edition
Nov 07, 2016 11:57 AM|Jack Hunt|LINK
If i ran single test case then its passed but when i select run All in VS 2015 then its throw error in Vs 2015.
mit's Website
Mitesh N Vaishnav
All-Star
17652 Points
3510 Posts
Re: Unit test cases working on vs 2013 but failure in vs 2015 enterprise edition
Nov 09, 2016 03:56 PM|Chris Zhao|LINK
Hi Jack,
If your solution is in a protected drive that you need administrator access to read/write, sometimes only a portion of the tests come up. Definitely run VS as administrator in that case.
If your solution is 64 bit, make sure that Test > Test Settings > Default Processor Architecture is set to x64. Sometimes it gets set to x86. Set it to x64, then rebuild.
Sometimes just restarting Visual Studio does the trick because the test explorer will start up again.
Don't forget to actually build the test project/solution
Best Regards,
Chris