Skip to content

Dev#14

Closed
ApplebaumIan wants to merge 8 commits into
warmupfrom
dev
Closed

Dev#14
ApplebaumIan wants to merge 8 commits into
warmupfrom
dev

Conversation

@ApplebaumIan
Copy link
Copy Markdown
Member

This pull request refactors the codebase to use Rainfall.java and RainfallTest.java instead of Main.java and MainTest.java, improving naming consistency and flexibility in running Java files. It also introduces a new Warmup.java file for a separate exercise and enhances the run script for more dynamic usage. The most important changes are grouped below.

Refactoring and Naming Consistency

  • Renamed Main.java to Rainfall.java and updated the main class name from Main to Rainfall throughout the codebase for clarity and consistency.
  • Renamed .clover-tests/MainTest.java to .clover-tests/RainfallTest.java and updated all references from Main to Rainfall in the test methods to match the new class name. [1] [2] [3] [4]

Testing and Evaluation Script Updates

  • Updated .clover-tests/run-tests.sh to reference Rainfall.java and RainfallTest.java instead of the old file names, ensuring correct file checks and compilation for instructor evaluation. [1] [2]

Run Script Improvements

  • Enhanced .run.sh to allow compiling and running any specified Java file, either via argument, environment variable, or by selecting the most recently modified .java file. This improves flexibility for running different assignments.
  • Updated the execution command in .run.sh to use the correct directory and class name, supporting the new dynamic file selection.

New Exercise Addition

  • Added a new file Warmup.java with a basic revenue/expenses exercise template for students to complete.

Configuration Update

  • Added a new setting clover.bugPercentage to .vscode/settings.json for potential use in automated testing or grading.

Copilot AI and others added 5 commits December 2, 2025 17:38
…ll.java, add Warmup.java

Co-authored-by: ApplebaumIan <9451941+ApplebaumIan@users.noreply.github.com>
Co-authored-by: ApplebaumIan <9451941+ApplebaumIan@users.noreply.github.com>
…-sh-button-functionality

Support running arbitrary Java files via .run.sh and refactor Main.java to Rainfall.java
@ApplebaumIan
Copy link
Copy Markdown
Member Author

@copilot Please take the warmup assignment in Main.java and place it in Warmup.java. remove Rainfall.java from this branch.

Copy link
Copy Markdown

Copilot AI commented Dec 5, 2025

@ApplebaumIan I've opened a new pull request, #15, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 3 commits December 7, 2025 04:04
Co-authored-by: ApplebaumIan <9451941+ApplebaumIan@users.noreply.github.com>
…a-debug-extension-again

Remove Java debug extension from Codespace to isolate CLOVER run button
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants