Sometimes you may want to execute your tests without having to interact with the UTF interface. It can be annoying to have to tap the Use Tag button to kick off the unit tests before the countdown timer reaches zero.
Note
Unfortunately, the test harness does not allow you to hide the tag expressions editor in the current version of the Windows Phone Toolkit UTF. Nonetheless, it is shown here in anticipation of a future release of the UTF.
To run the tests as soon as the test harness launches, you need to set the StartRunImmediately
property of the UnitTestSettings
instance. This is demonstrated in this excerpt from the MainPage.xaml.cs file in the downloadable sample code:
public MainPage()
{
InitializeComponent();
UnitTestSettings settings = UnitTestSystem.CreateDefaultSettings();
settings.StartRunImmediately = true;
Content = UnitTestSystem.CreateTestPage(settings);
}
3.149.232.152