DEV Community

Ayaan Ahmed
Ayaan Ahmed

Posted on • Edited on

Ayaan Ahmed SE371 Project 1A

This week I worked on setting up my environment for the unit testing project. I cloned my team’s repo onto my Mac and made my own branch (p1a/ayaan). I didn’t really know which folder I was supposed to run stuff in at first and I ran into a lot of errors with Gradle not recognizing the right Java version. My laptop was using Java 23 but the project needed Java 11, so I had to install Temurin 11 with Homebrew and fix the JAVA_HOME path manually. That part took me a while because the error messages were kind of confusing. Once I got Java set up right, I went into the Algorithms folder and ran ./gradlew clean test and it worked, all 21 tests passed. I added a small smoke test to make sure JUnit runs on my machine, then committed it to my branch and pushed it up. After that I made a pull request to the main branch so the team can merge it later. It took a bit to fiure everything out but I learned a lot about how the Gradle build works and how to get the environment running properly. Now that everything’s set up I feel way better about working on part B when we actually start writing tests.

Top comments (0)