Is it possible to do code coverage analysis with Visual Studio 2019 when running manual tests - code-coverage

I have a web application developed in Visual Studio 2019 (free Community edition), running on .NET Core 2.2
Because it's a web app, unit tests don't really help. But I would like to see if I have tested all the code when doing manual testing. Is this possible?
If you care to suggest a way of automating the testing of a complex web app, that would be nice, provided it isn't too open ended a question.

Related

Generate unit tests for my code by using IntelliTest

I found that I can use IntelliTest to generate unit tests for my code. I am using Visual Studio Enterprise 2019, but I don't see this option when I right-click on a method.
Should I download something?
Could it be related to my answer on Visual Studio 2019 IntelliTest Compatibility With .NET Core, .NET Standard? ? In a nutshell, if your app targets .NET Core there is a bug that needs to be upvoted in order to have this functionality fix.
TL&DR: Visual Studio Enterprise 2022 also does NOT have this capability!
IntelliTest is available in Enterprise edition only. It is supported
for C# code that targets the .NET Framework. .NET Core and .NET
Standard are not currently supported.

Visual Studio 2010 or MonoDevelop

I'm very new to Mono for Android and am having issues getting started - specifically as a new user I tend to have to step through code to ensure that it is doing what I want. This is extremely slow using VS 2010 and the latest version of Mono for Android. Just wondering if MonoDevelop will improve matters and whether it is as easy to develop using MonoDevelop rather than VS 2010 which is my normal tool.
Thanks for any advice
As far as i know the slowness is not due to Visual Studio but to the Android Emulator itself.
Debugging Monodroid on a physical device is lots faster with either VS or MonoDevelop, but then you need to buy a license to be able to deploy to anything else than the emulator..
I would keep using Visual Studio as it's far more complete and stable than MonoDevelop.
if performances are really an issue you might need to consider purchasing a license for Monodroid and use a physical Android device.
From my experience Mono Develop is more lightweight, but also more buggy. For the moment I am using Visual Studio. It compiles resources right away whereas Mono Develop sometimes does not recognize when I've added a resource. But you are right about the debugger. It is painfully slow. Other than the debugger I have found developing in MonoDroid to be fairly productive.

Tests are not available in Visual Studio 2008?

I'm working through the Nerd Dinner ASP.NET MVC tutorial and am at the part right after I've created the project and am trying to run my unit tests for the first time. I see the test project and the AccountControllerTest.cs and HomeControllerTest.cs files that were generated but when I click on Test -> Run all options are greyed out. When I try the keyboard shortcut for tests I get a message that that key combination is bound to command (RunTestsInCurrentContext) which is not currently available. I'm running VS 2008 Development Edition.
Dont think they are available in VS 2008 Development Edition, you need Professional Edition
Look at Code Quality Tools section in the pdf on this link - Visual Studio 2008 Product Comparison Guide
Do you have the Express Edition? IF so the tests are not supported
I have the standard edition and built in tests are not supported so I use Nunit.
http://nunit.com/index.php

Is it possible to develop ASP.NET MVC with MS Visual C# 2008 Express Edition and IIS?

Is it possible to develop ASP.NET MVC with MS Visual C# 2008 Express Edition and IIS?
The tutorial states that 'Visual Studio 2008 or Visual Web Developer 2008 Express' are required.
You can't develop an ASP.NET (MVC or otherwise) using Visual C# 2008 Express without a big kludge. C# Express is mainly for Windows applications.
What you can do is download and install Visual Web Developer 2008 Express. This edition is for ASP.NET developer (in C# or VB.NET). Unlike the Standard or Professional, with Express the functionality is split into 4 seperate packages - C# Express for C# desktop development, VB.NET Express for VB.NET desktop development, C++ Express for C++ desktop development, and Web Developer Express for any type of ASP.NET development. You can download and install all 4 of these on the same machine (they should even share the same copy of MSDN Express).
If you want it all in one IDE, you need to pay for Standard or Professional.
Oh, and just make sure you download the SP1 version of Web Developer 2008 Express, it's really annoying trying to install SP1 on the Express editions (or at least it is if you have some other versions of VS on the same machine), and you need SP1 to install MVC.
It's definitely possible. I haven't really used the Express editions enough to know what is easier or more difficult in one edition or another but the Web Developer edition is also free.
An easy way to do this is to get the Web Platform Installer. It installs everything you need to get going with web dev. Some have claimed that its vista only, but I was able to use it to install it on XP HOME on my asus netbook.
Yes. I have installed some of the previews. You just don't get MS Test.
Edit: That was with VS Express Web Developer Edition, however.
What do you mean regarding running ASP.NET MVC projects? To run it, you'd need a Web server rather than Visual Studio. For development, you can develop a class library in C# Express that will be used in an ASP.MVC app but project templates are only available for Web development product line (Visual Web Developer or full VS)
Update to reflect OP edit: To develop apps effectively, you'll need Visual Web Dev or VS. There's no point in not using VWD Express as it's free.
At least Visual Web Developer 2008 Express Edition SP1 requred. I think it's just enough for ASP.NET MVC development if you are not working in the team. There are a lot of great 3d-party testing frameworks - you are not constrained only to MS Test.

Creating new ASP.Net MVC project - Unit Test Dialog does not show up

When I create a New Project of type ASP.Net MVC Web Application, I expect the dialog for unit test applications to show up, but it does not. I cannot find the Unit Test App among the product types I can create either. How do I set up my VS so that the dialog shows up?
I have installed Visual Studio 2008, .Net Framework 3.5 SP1 and ASP.Net MVC Framework (Beta).
As #MrJavaGuy says, you need to install at least the Professional, not Express, version of VS2008. Alternatively, you can install nUnit and/or TestDriven.Net and get unit testing capabilities. Info on nUnit can be found at http://www.nunit.org/ and TestDriven.Net at http://www.testdriven.net/. I recommend TestDriven.Net even if you have the testing capabilities of Visual Studio baked in.
Turns out one of the problems were that I hadn't installed Testing Capabilities with my VS installation - running the installer and adding the feature made everything roll smoothly =)
Had the same problem with Visual Web Developer Express, I found this blog.
http://blogs.msdn.com/webdevtools/archive/2008/05/30/asp-net-mvc-preview-3-tooling-updates.aspx
I downloaded
http://www.box.net/shared/zmp0cdxsss
and that worked for me.. Not sure if this will sort your issue though. Best of luck with it.

Resources