CSCE 747 Software Testing and Quality AssuranceTools –GIT under Eclipse 1 CSCE 747 Fall 2013 CSCE...

Preview:

Citation preview

Tools – GIT under Eclipse  1 CSCE 747 Fall 2013

CSCE 747 Software Testing and Quality Assurance

Tools 10:   Git under Eclipse

1

Tools – GIT under Eclipse  2 CSCE 747 Fall 2013

Eclipse Welcome Page

http://code.google.com/p/mockito/

Tools – GIT under Eclipse  3 CSCE 747 Fall 2013

EGit User Guide

http://code.google.com/p/mockito/

Tools – GIT under Eclipse  4 CSCE 747 Fall 2013

WindowsPreferences

Install/Update

http://code.google.com/p/mockito/

Tools – GIT under Eclipse  5 CSCE 747 Fall 2013

Installing EGit Plug‐in

Under Help http://download.eclipse.org/egit/updates

http://code.google.com/p/mockito/

Tools – GIT under Eclipse  6 CSCE 747 Fall 2013http://code.google.com/p/mockito/

Tools – GIT under Eclipse  7 CSCE 747 Fall 2013

Configuration

Select Window → Preferences → Team → Git→ Configura on

http://code.google.com/p/mockito/

Tools – GIT under Eclipse  8 CSCE 747 Fall 2013http://code.google.com/p/mockito/

Tools – GIT under Eclipse  9 CSCE 747 Fall 2013

User.name & user.email

http://code.google.com/p/mockito/

Tools – GIT under Eclipse  10 CSCE 747 Fall 2013

Activating the Git toolbar To simplify access to the common Gitoperations you can activate the Git toolbar.  For this select Window → Customize perspective... and  check the command groups Git and GitNavigation Actions in the Command Groups

http://code.google.com/p/mockito/

Tools – GIT under Eclipse  11 CSCE 747 Fall 2013http://code.google.com/p/mockito/

Tools – GIT under Eclipse  12 CSCE 747 Fall 2013

Creating Git Repository within Eclipse

RightClick on project TeamShare Project

http://code.google.com/p/mockito/

Tools – GIT under Eclipse  13 CSCE 747 Fall 2013http://code.google.com/p/mockito/

Tools – GIT under Eclipse  14 CSCE 747 Fall 2013http://code.google.com/p/mockito/

Tools – GIT under Eclipse  15 CSCE 747 Fall 2013http://code.google.com/p/mockito/

Tools – GIT under Eclipse  16 CSCE 747 Fall 2013

Using the Git Staging view for the initial commit

.gitignore ‐ bin directories etc. Window → Show View → Other... → Git→ Git Staging menu. ?No repository selected

Vogel, Lars (2013‐04‐22). Eclipse IDE (vogella) (Kindle Locations 2504‐2505). vogella.com. Kindle Edition.

http://code.google.com/p/mockito/

Tools – GIT under Eclipse  17 CSCE 747 Fall 2013

Initial Commit

http://code.google.com/p/mockito/

Tools – GIT under Eclipse  18 CSCE 747 Fall 2013

TestSuitepackage taSchedule;

import org.junit.runner.RunWith;

import org.junit.runners.Suite;import org.junit.runners.Suite.SuiteClasses;

@RunWith(Suite.class)@SuiteClasses({ TimeSlotTest.class, TimeTest.class })public class AllTests {

}

http://code.google.com/p/mockito/

Tools – GIT under Eclipse  19 CSCE 747 Fall 2013http://code.google.com/p/mockito/

Tools – GIT under Eclipse  20 CSCE 747 Fall 2013http://code.google.com/p/mockito/

Recommended