Skip to content

How to Run

zrpersad edited this page Nov 22, 2023 · 1 revision

1. OPEN YOUR TERMINAL

For Windows users: Press the windows icon at the bottom left of screen, search "Command Prompt" and click Command Prompt to open
For Mac users: Press COMMAND + SPACEBAR and search terminal, then press enter.

Copy this command "cd Desktop", paste it in the terminal and press Enter. Now copy this command "git clone https://github.com/TeamVIIII/OOP2.git", paste it the terminal and press enter.

2. Open VS CODE

Screenshot 2023-11-22 at 11 37 07 AM When VS Code is opened, click icon circled in red in the above image. Go to your desktop, then look for the folder named "OOP2". Click this folder, then click the folder named "autograder". Then proceed to click Open.

For Mac users use the below image as a guide:

Screenshot 2023-11-22 at 11 48 39 AM

For Windows Users use the below image as a guide:

WhatsApp Image 2023-11-22 at 13 45 46 For windows users click "Select Folder" instead of Open.

3. TO RUN CODE

Click the src folder, then click the main, then click java/oop2_project folder and finally click the main.java file. Finally to run the program click the run button. Use the below image with steps 1-4 as a guide: Screenshot 2023-11-22 at 11 53 50 AM

After clicking run, the program would be executed in Vs Code integrated terminal. Here you enter the file path for the zip of zipped submissions to be graded by the system and a pdf report is created in each students submission folder taking the name of the student's submission folder.

4. To RUN TESTS

Click src folder, then click the test/java/oop2_project folder and click the TestSuite.java file. Finally click the green arrow at line 22 in TestSuite.java file to execute all tests. Use the below image with steps 1-4 as a guide: Screenshot 2023-11-22 at 2 03 38 PM

Clone this wiki locally