コード例 #1
0
        public void DeleteTag()
        {
            TestClone(gtkSharpUrl);
            Ide.WaitForSolutionCheckedOut();

            OpenRepositoryConfiguration("Tags");
            DeleteTag("1.0.10");
            CloseRepositoryConfiguration();
        }
コード例 #2
0
        public void CreateNewBranchTest()
        {
            TestClone(gtkSharpUrl);
            Ide.WaitForSolutionCheckedOut();

            OpenRepositoryConfiguration();
            CreateNewBranch("new-branch");
            CloseRepositoryConfiguration();
        }
コード例 #3
0
        public void SelectRemoteTest()
        {
            TestClone("[email protected]:mono/jurassic.git");
            Ide.WaitForSolutionCheckedOut();

            OpenRepositoryConfiguration("Remote Sources");
            SelectRemote("origin");
            CloseRepositoryConfiguration();
        }
コード例 #4
0
        public void CreateNewBranchTest()
        {
            TestClone("[email protected]:mono/jurassic.git");
            Ide.WaitForSolutionCheckedOut();

            OpenRepositoryConfiguration();
            CreateNewBranch("new-branch");
            CloseRepositoryConfiguration();
        }
コード例 #5
0
        public void SelectRemoteTest()
        {
            TestClone(gtkSharpUrl);
            Ide.WaitForSolutionCheckedOut();

            OpenRepositoryConfiguration("Remote Sources");
            SelectRemote("origin");
            CloseRepositoryConfiguration();
        }
コード例 #6
0
        public void GitEditBranchTest()
        {
            TestClone(gtkSharpUrl);
            Ide.WaitForSolutionCheckedOut();

            OpenRepositoryConfiguration();
            CreateNewBranch("new-branch");
            SelectBranch("new-branch");
            EditBranch("new-branch", "new-new-branch");
            SwitchToBranch("new-new-branch");
            CloseRepositoryConfiguration();
        }
コード例 #7
0
        public void AddTag()
        {
            TestClone(gtkSharpUrl);
            Ide.WaitForSolutionCheckedOut();

            OpenRepositoryConfiguration("Tags");

            AddNewTag("bumped", "bumped tag", "build: Bump mono dependency to 3.2.8");
            SelectTag("bumped");
            TakeScreenShot("New-Tag-Selected");

            CloseRepositoryConfiguration();
        }
コード例 #8
0
        public void AddGitRemoteTest()
        {
            TestClone(gtkSharpUrl);
            Ide.WaitForSolutionCheckedOut();

            const string newRemoteName = "second";
            const string newRemoteUrl  = monoHotdrawUrl;

            OpenRepositoryConfiguration("Remote Sources");
            AddRemote(newRemoteName, newRemoteUrl);
            SelectRemote(newRemoteName, newRemoteUrl);
            CloseRepositoryConfiguration();
        }
コード例 #9
0
        public void AddGitRemoteTest()
        {
            TestClone("[email protected]:mono/jurassic.git");
            Ide.WaitForSolutionCheckedOut();

            const string newRemoteName = "second";
            const string newRemoteUrl  = "[email protected]:mono/monohotdraw.git";

            OpenRepositoryConfiguration("Remote Sources");
            AddRemote(newRemoteName, newRemoteUrl);
            SelectRemote(newRemoteName, newRemoteUrl);
            CloseRepositoryConfiguration();
        }
コード例 #10
0
        public void FetchRemoteBranches()
        {
            TestClone(gtkSharpUrl);
            Ide.WaitForSolutionCheckedOut();

            const string newRemoteName = "second";
            const string newRemoteUrl  = "[email protected]:mono/monohotdraw.git";

            OpenRepositoryConfiguration("Remote Sources");
            AddRemote(newRemoteName, newRemoteUrl);
            FetchRemoteBranch(newRemoteName);
            CloseRepositoryConfiguration();
        }
コード例 #11
0
        public void CheckTagButtonsSensitivity()
        {
            TestClone(gtkSharpUrl);
            Ide.WaitForSolutionCheckedOut();

            OpenRepositoryConfiguration("Tags");

            TakeScreenShot("Asserting-Push-Delete-Button-Disabled");
            AssertTagsButtonSensitivity(false, false);
            SelectTag("1.0.10");
            TakeScreenShot("Asserting-Push-Delete-Button-Enabled");
            AssertTagsButtonSensitivity(true, true);

            CloseRepositoryConfiguration();
        }
コード例 #12
0
        public void TrackRemoteBranchInLocalTest()
        {
            TestClone(gtkSharpUrl);
            Ide.WaitForSolutionCheckedOut();

            const string newRemoteName = "second";
            const string newRemoteUrl  = "[email protected]:mono/monohotdraw.git";

            OpenRepositoryConfiguration("Remote Sources");
            AddRemote(newRemoteName, newRemoteUrl);
            FetchRemoteBranch(newRemoteName);
            const string localBranch = "local-branch-random-uitest";

            CreateEditBranch("buttonTrackRemote", localBranch);
            SwitchTab("Branches");
            SelectBranch(localBranch);
            CloseRepositoryConfiguration();
        }
コード例 #13
0
        public void CheckRemoteButtonsSensitivity()
        {
            TestClone(gtkSharpUrl);
            Ide.WaitForSolutionCheckedOut();

            OpenRepositoryConfiguration("Remote Sources");

            TakeScreenShot("Asserting-Edit-Remove-Track--Fetch-Button-Disabled");
            AssertRemotesButtonSensitivity(false, false, false, false);
            SelectRemote("origin");
            TakeScreenShot("Asserting-Edit-Switch-Button-Enabled");
            AssertRemotesButtonSensitivity(true, true, false, true);
            SelectRemoteBranch("origin", "master");
            TakeScreenShot("Asserting-Edit-Switch-Button-Track-Enabled");
            AssertRemotesButtonSensitivity(true, true, true, true);

            CloseRepositoryConfiguration();
        }
コード例 #14
0
        public void CheckBranchButtonsSensitivity()
        {
            TestClone(gtkSharpUrl);
            Ide.WaitForSolutionCheckedOut();

            OpenRepositoryConfiguration("Branches");

            TakeScreenShot("Asserting-Edit-Delete-Switch-Button-Disabled");
            AssertBranchesButtonSensitivity(false, false, false);
            SelectBranch("<b>master</b>");
            TakeScreenShot("Asserting-Edit-Switch-Button-Enabled");
            AssertBranchesButtonSensitivity(true, false, false);
            CreateNewBranch("new-branch");
            SelectBranch("new-branch");
            TakeScreenShot("Asserting-Edit-Delete-Switch-Button-Enabled");
            AssertBranchesButtonSensitivity(true, true, true);

            CloseRepositoryConfiguration();
        }
コード例 #15
0
        public void EditGitRemoteUrlTest()
        {
            TestClone(gtkSharpUrl);
            Ide.WaitForSolutionCheckedOut();

            OpenRepositoryConfiguration("Remote Sources");

            const string newRemoteName = "second";
            const string newRemoteUrl  = "[email protected]:mono/monohotdraw.git";

            AddRemote(newRemoteName, newRemoteUrl);
            SelectRemote(newRemoteName, newRemoteUrl);

            const string updatedRemoteUrl = "[email protected]:mono/monohotdraw-push.git";

            EditRemote(newRemoteName, updatedRemoteUrl, updatedRemoteUrl);
            SelectRemote(newRemoteName, updatedRemoteUrl);
            CloseRepositoryConfiguration();
        }
コード例 #16
0
        public void EditGitRemoteNameAndPushUrlTest()
        {
            TestClone(gtkSharpUrl);
            Ide.WaitForSolutionCheckedOut();

            OpenRepositoryConfiguration("Remote Sources");

            const string newRemoteName = "second";
            const string newRemoteUrl  = monoHotdrawUrl;

            AddRemote(newRemoteName, newRemoteUrl);
            SelectRemote(newRemoteName, newRemoteUrl);

            const string updatedRemoteName = "second-origin";
            const string updatedRemoteUrl  = monoHotdrawUrl;

            EditRemote(updatedRemoteName, updatedRemoteUrl, monoHotdrawUrl);
            SelectRemote(updatedRemoteName, updatedRemoteUrl);
            CloseRepositoryConfiguration();
        }
コード例 #17
0
ファイル: GitTests.cs プロジェクト: peterdocter/monodevelop
 public void TestGitClone(string url)
 {
     TestClone(url);
     Ide.WaitForSolutionCheckedOut();
 }
コード例 #18
0
ファイル: SvnTests.cs プロジェクト: noah1510/dotdevelop
 public void TestSvnClone()
 {
     TestClone("https://github.com/mono/heap-shot", cvsType: VersionControlType.Subversion, cloneTimeoutSecs: 360);
     Ide.WaitForSolutionCheckedOut();
 }