I'm trying to find out how often and how much time I spend running, not writing, unit tests. I'm using Test Explorer and VSTest from within Visual Studio 2015.
Is this information logged anywhere?
Related
I have a bunch of microsoft unit tests in several of my apps and have done some looking on here and other places to see if I could run these tests without installing visual studio on my client's computers which is not a possibility. So the simple question is - can I run the tests through some test harness on the client's computer?
I am having trouble with Visual Studio 2012. We have windows service written in VB.NET and we have one unit test we use to initiate debugging process for that service. Problem is that sometimes Visual Studio detaches from debugging of service and instead of breaking execution, service just continues execution until everything is done.
How to prevent this form happening? It's very annoying and destroys prepared test cases.
Solution is to install Visual Studio 2013 with Update 5.
Also to note, release version of VS2013 has a bug which is causing application rebuild every time you try to run/debug application (even though you didn't change anything).
Test templates such as Coded-UI testing and Web performance testing are missing.
I originally had visual studio 2010 professsional installed. I upgraded to visual studio 2010 ultimate just so that I wanted to use Coded-UI testing and Web performance testing features.
However, the options seem to be missing. It is as if the upgrade has not made a difference with regards to additional testing templates.
I have a visual studio 2010 ultimate evaluation version installed.
I have checked in Tools > Options > Test tools: but doesn't seem to have anything in here that I can change. Searched online too, everywhere seem to suggest that after VS 2010 Ultimate installed, you should be have the templates to create the additional tests.
If I go to menu, Test > New test > Add new test dialog,
Here I just have "Basic Unit test", "Ordered test", "Unit test", "Unit Test wizard"
Have also tried, Right click the Test project, Add > no option for Coded-UI test here!
Has anyone come across anything like this?
Any advice is appreciated,
Thanks, Fred
Edit 09:22 GMT 26-05-2012:
I used the visual studio ultimate web-installer. I double checked the options to select while installation. There is no option specific to testing here. So, selected Visual C# + Visual Web developer + Graphics library
I had this issue when upgrading from VS2010 Professional to VS2010 Ultimate. I think it may have been caused by having already installed SP1 in Professional. I solved it by doing the following:
Go into Windows Add/Remove programs and run a Repair against VS2010 (takes a LONG time).
You might need a reboot, do not skip the reboot if prompted.
Re-run VS2010 SP1 setup and run Repair when prompted (takes a LONG time).
That should do the trick! Run up VS2010 and the templates should now be accessible!
Good luck!
I'm leaning toward using MSTest as unit testing framework for a new project but I'm concerned with cutting off developers (maybe even myself in the future and/or in some specific environment) using Express editions of Visual Studio.
I know MSTest wasn't available in VS2008 Express but with Microsoft pushing unit testing in recent years I guess they could've added it to VS2010 Express. However I couldn't find any info on this in the list of Express features and I don't want to download and install express just to verify this.
So, is MSTest supported in Visual Studio 2010 Express?
It does not appear in Microsoft's list of features of Visual Studio Express 2010, and it would appear (according to this blog post) that it is not supported. Since express editions do not allow add-ins, you cannot even use something like TestDriven.net to run tests from within Visual Studio Express editions.
If you were to use NUnit for testing, you may get more mileage. That blog post shows a way of running/debugging NUnit tests using a bootstrapper, but an easier way is to set NUnit as the start action (in Project Properties -> Start External Program), and then passing the name of your dll as an argument. This will start and run NUnit when you run/debug your project, allowing you launch your tests from within Visual Studio, and also debug them if needed.
I'd like to write some basic tests for our web and Winforms applications.
I already own Visual Studio 2010 Ultimate. Do I also need TFS in order to use the new CodedUI tests?
No you don't need to have TFS in order to use Coded UI tests. You can create your tests in Visual Studio and run them direct from there, or via mstest. The main benefit TFS will add is the ability to execute tests across multiple physical and virtual tests machines via Test Manager. You will also get central collation of test results in the TFS repository.
No, you don't need TFS. Visual Studio 2010 Ultimate is quite enough to record and launch codedUI tests.