Hi,
We are having some problems running .Net unit tests from Bamboo. It seems that the results when we run them from bamboo aren't the same as when we run them manually using VS2010 or mstest.
Our theory is that the UI itself isn't being loaded, and we have tested it by adding the following test to our build:
[TestMethod]
public void TestBamboo()
{
var window = new Window();
window.Loaded += new RoutedEventHandler(window_Loaded);
window.Show();
Thread.Sleep(2000);
window.Close();
}
void window_Loaded(object sender, RoutedEventArgs e)
{
throw new NotImplementedException();
}
So the test should fail when the window loads, and it does so from my machine. However, this test succeeds from bamboo.
We have tried running bamboo from the console instead of the service, but to no avail.
How can we run these tests in interactive mode even when we aren't logged into the machine running bamboo?
The build server is a Windows Server 2008 R2, and bamboo is running locally.