Learn how to test your Java exercises on Exercism
Choose your operating system:
Open a Command Prompt.
Get the first exercise:
C:\Users\JohnDoe>exercism download --exercise hello-world --track java
Change directory into the exercism:
C:\Users\JohnDoe>cd C:\Users\JohnDoe\exercism\java\hello-world
Run the tests:
C:\Users\JohnDoe>gradlew.bat test
(Don't worry about the tests failing, at first, this is how you begin each exercise.)
Solve the exercise. Find and work through the instructions.append.md
guide (view on GitHub).
Good luck! Have fun!
In the terminal window, get the first exercise:
exercism download --exercise hello-world --track java
Change directory into the exercise:
cd /Users/johndoe/exercism/java/hello-world
Run the tests:
./gradlew test
(Don't worry about the tests failing, at first, this is how you begin each exercise.)
Solve the exercise. Find and work through the instructions.append.md
guide (view on GitHub).
Good luck! Have fun!
In the terminal window, get the first exercise:
exercism download --exercise hello-world --track java
Change directory into the exercise:
cd /home/johndoe/exercism/java/hello-world
Run the tests:
./gradlew test
(Don't worry about the tests failing, at first, this is how you begin each exercise.)
If you get the following error:
./gradlew: Permission denied
Then the file is missing the execute permission. To fis this, run:
chmod +x ./gradlew
And now you should be able to run the previous command.
Solve the exercise. Find and work through the instructions.append.md
guide (view on GitHub).
Good luck! Have fun!