All of my practical assignments for SEiP are stored here.
These instructions will get you a copy of the Maven project up and running in order to create a histogram chart from a grades txt file.
Clone this repository by opening your Git Bash and entering the following command: git clone https://github.com/dimitra-karadima/SEiP2020_Assignments.git
Note: If the code is still not merged to the master branch, then you first need to get to the development branch to get the code:
- Open Git Bash and browse to the repository with:
cd SEiP2020_Assignments
. - Change to the development branch with:
git checkout development
.
Now you are ready to follow the next steps. If the code is merged just ignore the above steps.
If you only want to run the project you just want to download only Git Bash. But if you want to modify the code you will need to more things, Eclipse IDE and Maven. Below, you can find the links on how to download and install each program.
A step by step series of examples that tell you how to get a development env running
- You need to have the code in your computer. Check the command in the Getting Started section.
- Open your Eclipse IDE and select in the File area and select Open Projects from File System.
- In the import source select Directory and browse in your computer to find the path where you saved the code in the first step.
- Press Finish and you have the code in your Eclipse IDE.
You can now change anything you want in the code, from the java files to the pom.xml files. With any little change there is a whole different program.
The dependencies in the Maven project are:
- The parent named seip2020_practical_assignments.
- A Maven module named gradeshistogram.
- A Maven module named unittesting.
- A Maven module name sourcecodeanalyzer.
Now, if you want to run the project here is a step guide for you! We assume that you have already cloned the repository in your computer as shown in the Getting Started section.
- Open Command Prompt.
- Navigate where you cloned the repository. There will be a folder named
SEiP2020_Assignments
. - Enter in this folder with:
cd SEiP2020_Assignments
. - Build the Maven project by:
mvn install
ormvn package
If you want to create a histogram based on a txt file you store grades, click here.
If you want to do basic arithmetic operations, click here. The arithmetic operations return the correct result as they are tested for their functionality.
In order to generate a report of the code coverage produced by JaCoCo execute the following Maven command : mvn clean package jacoco:report
The code coverage will be located in target/site/jacoco
for each module of the project.
This project utilizes the TravisCI services in order to test and build the project every commit pushed to this repository.
The build badge that is placed in the first line of this README is updated in every commit. It can either be green or red, depending whether the build has passed or failed respectively.
- Maven - Dependency Management
- Dimitra Karadima Github profile
This project is licensed under the MIT License - see the LICENSE file for details