Not sure if this is 2012 specific but I have a project hosted on a network share (for backup reasons). When I click run all I can see the project being built but nothing happens, it doesn't find any tests nor do they run. If I built the solution manually
the same thing happens. If I copy the project to my C drive it works fine.
I've been playing around with trying to make the network location a trusted using caspol but it says:
"WARNING: The .NET Framework does not apply CAS policy by default. Any settings
shown or modified by CasPol will only affect applications that opt into using
CAS policy."
Look at your unit testing code. You probably have some attributes there, specifically the UrlToTest and AspNetDevelopmentServerHost attributes. The parameters for these are usually location specific and is probably the source of your issues.
Christopher Reed, MCT, MCPD, MCTS, Microsoft Specialist, MTA
"The oxen are slow, but the earth is patient."
I'm not sure of the restrictions that exist for VS 2012 Express for Web. Have you tried using the same solution with test project in the full version of VS 2012?
Christopher Reed, MCT, MCPD, MCTS, Microsoft Specialist, MTA
"The oxen are slow, but the earth is patient."
David Lindon
0 Points
6 Posts
Unit tests not running/discovered when project on network share
Jul 04, 2012 08:26 PM|LINK
Not sure if this is 2012 specific but I have a project hosted on a network share (for backup reasons). When I click run all I can see the project being built but nothing happens, it doesn't find any tests nor do they run. If I built the solution manually the same thing happens. If I copy the project to my C drive it works fine.
I've been playing around with trying to make the network location a trusted using caspol but it says:
"WARNING: The .NET Framework does not apply CAS policy by default. Any settings
shown or modified by CasPol will only affect applications that opt into using
CAS policy."
Any ideas?
Careed
All-Star
18774 Points
3637 Posts
Re: Unit tests not running/discovered when project on network share
Jul 05, 2012 03:17 AM|LINK
Look at your unit testing code. You probably have some attributes there, specifically the UrlToTest and AspNetDevelopmentServerHost attributes. The parameters for these are usually location specific and is probably the source of your issues.
"The oxen are slow, but the earth is patient."
David Lindon
0 Points
6 Posts
Re: Unit tests not running/discovered when project on network share
Jul 06, 2012 07:55 PM|LINK
I've put a video on youtube (its a bit small so switch the quality to HD and view fullscreen)
http://www.youtube.com/watch?v=hDOgWVDKwPQ
Careed
All-Star
18774 Points
3637 Posts
Re: Unit tests not running/discovered when project on network share
Jul 11, 2012 01:11 AM|LINK
I'm not sure of the restrictions that exist for VS 2012 Express for Web. Have you tried using the same solution with test project in the full version of VS 2012?
"The oxen are slow, but the earth is patient."
David Lindon
0 Points
6 Posts
Re: Unit tests not running/discovered when project on network share
Jul 18, 2012 02:47 PM|LINK
Just tried VS2012 RC and exactly the same. Tests are found and can be run on local drive, on network drive nothing is disocvered.