Exemple #1
0
        public void RunAllTests_UserSettings_ShuffledTestExecutionAndNoBatchWarning()
        {
            try
            {
                try
                {
                    VS.TestExplorer.SelectTestSettingsFile(VS.UserSettingsFile);

                    VS.TestExplorer.RunAllTests();

                    string output = VS.GetOutput();
                    output.Should().Contain("--gtest_shuffle");
                    output.Should().Contain("--gtest_repeat=3");
                    output.Should().NotContain(BatchTeardownWarning);
                }
                finally
                {
                    VS.TestExplorer.UnselectTestSettingsFile();
                }
            }
            catch (AutomationException exception)
            {
                exception.LogAndThrow();
            }
        }
Exemple #2
0
        public void RunAllTests_GlobalAndSolutionSettings_BatchTeardownWarning()
        {
            try
            {
                VS.TestExplorer.RunAllTests();

                VS.GetOutput().Should().Contain(BatchTeardownWarning);
            }
            catch (AutomationException exception)
            {
                exception.LogAndThrow();
            }
        }
Exemple #3
0
 public static void CleanVsExperimentalInstance()
 {
     VS.CleanVsExperimentalInstance();
 }
Exemple #4
0
 public void CloseSolution()
 {
     VS.CloseSolution();
 }
Exemple #5
0
 public void OpenSolutionAndTestExplorer()
 {
     VS.OpenSolution();
     VS.TestExplorer.OpenTestExplorer();
 }
Exemple #6
0
 public static void SetupVanillaVsExperimentalInstance(TestContext testContext)
 {
     VS.SetupVanillaVsExperimentalInstance("GoogleTestAdapterUiTests");
     VS.LaunchVsExperimentalInstance();
 }