Due date: September 8 (FIRM) This is an individual project Objectives Installation of required course software, through Android Studio, and creation of a Bitbucket account:
An initial understanding of Bitbucket and Android Studio plus Test-Driven Development (TDD)
Description In this project, you will import an existing Java Git project from GitHub into Bitbucket, download it / clone it into Android Studio by "Checking it out" on your PC, run its single failing test, update the project source to fix the program, and commit your changes to your project Bitbucket. Your imported project will be shared with the instructor and TA for grading. Importing the base version of Project 1 into Bitbucket Start with this code skeleton: https://github.com/LoyolaChicagoCode/hello-java. See below for detailed instructions about how to import this into Bitbucket. Cloning the base version of Project 1 from your Bitbucket repository into Android Studio on your PC To clone your hello-java project into Android Studio, open Android Studio and click Check out project from Version Control on the welcome page, select Git (not GitHub), then copy the HTTPS URL for your repository into the first field of the window that comes up. Select a parent directory or folder on your PC that will contain your course Projects, and change the name of the checked-out project to cs313413f20p1, then click Clone. You will probably have to enter your Bitbucket password to get the clone to complete. If you have any problems cloning your repo to your PC, use SourceTree instead. Functional requirements for Project 1 The functional requirements for this Project are embodied in the JUnit tests in the test folder; instructions for running the test are detailed below. When your code passes all the tests, you will have fulfilled the functional requirements for grading purposes. If some of the tests do not pass, you will receive partial credit. Nonfunctional requirements Specifically, fix the code in the Java source file within the src folder, using the test cases as your guide. In addition, there might be one of the test cases that is not correct, and that also needs to be fixed. Be sure to push your changes continually (use push under VCS in Android Studio, or do a push by using SourceTree)! Create a new doc folder within your local project root folder. Include your screenshot called project1.png inside the doc folder (see details below). Notify the instructor when the project is ready to be graded by Submitting a note on Sakai in the Project 1 Assignment. Grading
3 points total Detailed Instructions To do Project 1, follow these steps carefully; note that they may be updated as we get feedback about any problems that students encounter:
2. Now go to http://bitbucket.org and create an account using your Loyola
email (if you already have such an account using your Loyola
email, just use it). Bitbucket is a cloud-based system that hosts
so-called repositories or repos in
Version Control Systems (VCSs) Git and Mercurial. We'll be using Git in
this class. Using your Loyola email allows you to create an unlimited
number of Bitbucket repositories.
3. Once you have installed everything and created a
Bitbucket account, use Android Studio to download an Android Console
project hosted in Bitbucket from a Git repository as described above
in the Cloning section. To get the Project 1 tests to run
in Android Studio, you will perform the following steps:
4. To finish Project 1 you
must change file HelloWorld.java and the one incorrect
test in the project so that the tests all pass (there
are three tests in total), then commit your changes in
Git using the Android Studio VCS menu. You will also need
to upload a screenshot of the successfully-run
tests from the project into a new doc directory/folder
that you create in your project on your PC, add that
screenshot and directory to your local Git repository (right click
the screen shot file, and use the Git => Add menu
item), commit that change as well, and finally push both
changes to your Bitbucket repository in the cloud. You should be able to
find push in Android Studio by doing a VCS
=> Open VCS Popup (it was choice 8 in the version on my
PC). If you have any problems doing those steps in Android Studio,
use SourceTree instead. You can put the doc directory at
either the cs313413f20p1 level or under src -
in either case, right-click where you want to put it in the project window
and select New then Directory and name
it doc, then right-click its name, choose Open in
Explorer, and copy the screenshot there before you do the Add and push. Note: there are instructions for connecting to Git on Bitbucket using SSH so that you don’t have to enter your Bitbucket password every time you do a commit – follow this URL: https://confluence.atlassian.com/display/BITBUCKET/Set+up+SSH+for+Git for more information. Some students have had problems using those instructions in the past, so you may have to fall back on entering your password each time … How to submit To finish Project 1 you must change file HelloWorld.java in hello-java so that the tests all pass and then commit that change in Git. You will also need to upload a screenshot of the successfully-run tests from that project into the project’s new doc directory/folder on your PC, add it to your local Git repository, commit that change as well, and finally push both changes to your Bitbucket repository in the cloud. As the first step in working on this project, you will import the code skeleton into a private Bitbucket repository shared with your instructor. The name of the repository is cs313413f20p1, where the p1 part refers to Project 1. When your work is ready to be graded, please notify your instructor via both Piazza and by Submitting the assignment in Sakai, and add a completion note in the Sakai comments box. |