Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you run Web Tests during a Team Build (for TFS 2010)?

Tags:

tfsbuild

I have a number of solutions in TFS 2010 and happily building them with Team Build, including running unit tests defined in assemblies.

For one solution, I have added some Web Tests (defined in files with the extension ".webtest"). I can successfully run these Web Tests locally from Visual Studio 2010 but cannot get them to execute during a Team Build.

In the Team Build Definition, I have tried changing the "Test assembly file specification" value to "*test*.dll;*.webtest" but this fails to pick up the Web Tests. I can see that the .webtest files have been copied under the "Binaries\Debug" directory (same place as the unit tests) so I'm a bit puzzled why they are not found.

What am I missing? How do you get the .webtest files to run under a Team Build?

Thanks

like image 830
Callum Hibbert Avatar asked Nov 25 '22 01:11

Callum Hibbert


1 Answers

In the FileSpec filter, only include the *.webtest (removing the test.dll;). For the Web Performance Tests, the WebTest and LoadTest files are the test containers. This is a difference from Unit Tests, which have a DLL as their container.

like image 174
Gabe Avatar answered Dec 28 '22 17:12

Gabe