c# - How does Visual Studio 2010 determine which projects are test projects? -
c# - How does Visual Studio 2010 determine which projects are test projects? -
i have project made team member. added classes , wanted unit test them. added project our unit test solution, can't right-click on function , select "create unit test". found solution manually type editorcontextmenus.codewindow.createunittests
in command window, error "test generation supported on non test projects."
i searched "test" through whole project , came populatestructure
there's no functions test attributes. deleted stray reference microsoft.visualstudio.qualitytools.unittestframework
team fellow member said had been automatically inserted visual studio. reference did not come when compiled, still couldn't auto generate tests.
i searched [
, attribute outside assemblyinfo.cs
1 of our own:
[attributeusage(attributetargets.all)] public class ourattribute_c : system.attribute { ...
i did diff between project file , project file i'm testing, , saw nil obvious. same assemblyinfo files.
i know can manually create tests without tool, why vs2010 think project unit test project?
in searching found lot of complaints feature beingness exclusively missing vs2012 beta, have feature in other projects not one. couple places had related complaints, no answers.
similar (slightly different) question no answer: unit test generation error in visual studio website project?
when created "test" project, did take testing project type?
in csproj, there tag called projecttypeguids
gives project type or list of types ide understand ide tooling use. can edit manually in csproj.
here non-definitive list of guids
easiest thing kill project , create new project right template.
c# visual-studio-2010 unit-testing mstest
Comments
Post a Comment