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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With