Setting-Up your Development Environment for the Project
It is probably best to start with a "clean" development environment for the
project (using the same tools you've been using all semester).
-
Create a directory for a new Eclipse workspace. (You can use an existing workspace, but I don't recommend it.) For example:
/home/bernstdh/cs446/projectworkspace
-
Create a directory for a new local repository. For example:
/home/bernstdh/cs446/projectrepository
Do not put the repository directory inside of the workspace directory.
(If you have a directory that you use for all of your Git repositories, you can use it instead if you want.)
-
Open Eclipse using the appropriate directory (e.g.,
/home/bernstdh/cs446/projectworkspace
).
-
Click on [Window]-[Perspective]-[Open Perspective]-[Other]-[Git].
-
Click on "Clone a Git Repository" and:
-
Enter the "URI"
https://github.com/bernstdh/cs446spring2022
-
Enter your "User" and "Password" (i.e., your Personal Access Token).
- Click on [Next]
- Select
main
- Click on [Next]
- Enter the appropriate "Directory" (e.g.,
/home/bernstdh/cs446/projectrepository
)
- Click on [Finish]
-
Expand the Working Tree.
-
Right-click on
deployment
and choose "Import Projects"
-
Right-click on
testing
and choose "Import Projects".
-
Re-start Eclipse. (This shouldn't be necessary, but is because of a defect
in Eclipse or Egit.)
-
Open the Java Perspective.
-
Expand the
testing
project.
-
Right-click on the
resources
directory, pull down to [Build Path] and select [Use as Source Folder].
-
Right-click on
testing
, pull down to [Build Path] and select [Configure Build Path].
-
Select the "Projects" tab.
-
Select "Classpath".
-
Click on [Add].
-
Select
deployment
and click on [OK].
-
Choose the "Libraries" tab.
-
Select "Classpath".
-
Click on [Add Library...].
-
Select "JUnit".
-
Click on [Next].
-
Select "JUnit 5".
-
Click on [Finish].
-
Setup the Checkstyle configuration/checks file for the course and the course formatter. (If you have forgotten how to do this, see the course "Help" page on "Installing and Configuring the Base CS446 Development Environment".
-
Click on [Run]-[Run Configurations].
-
Select JUnit.
-
Click on the "New Launch Configuration" icon.
-
Name it "AllTests".
-
Select "Run all tests in the selected..."
-
Search for the
testing
project.
-
Select "JUnit 5" for the "Test runner".
-
Click on [Apply].