了解如何在 Exercism 上測試你的 Java 練習
選擇你的作業系統:
開啟 Command Prompt。
取得第一個練習:
C:\Users\JohnDoe>exercism download --exercise hello-world --track java
切換到 exercism 目錄:
C:\Users\JohnDoe>cd C:\Users\JohnDoe\exercism\java\hello-world
執行測試:
C:\Users\JohnDoe>gradlew.bat test
(一開始測試失敗不用擔心,每個練習都是這樣開始的。)
解開這個練習。找到並跟著instructions.append.md指南操作(在 GitHub 上查看)。
祝你好運!玩得開心!
在終端機視窗中,取得第一個練習:
exercism download --exercise hello-world --track java
切換到練習目錄:
cd /Users/johndoe/exercism/java/hello-world
執行測試:
./gradlew test
(一開始測試失敗不用擔心,每個練習都是這樣開始的。)
解開這個練習。找到並跟著instructions.append.md指南操作(在 GitHub 上查看)。
祝你好運!玩得開心!
在終端機視窗中,取得第一個練習:
exercism download --exercise hello-world --track java
切換到練習目錄:
cd /home/johndoe/exercism/java/hello-world
執行測試:
./gradlew test
(一開始測試失敗不用擔心,每個練習都是這樣開始的。)
如果你遇到以下錯誤:
./gradlew: Permission denied
那表示這個檔案少了執行權限。要修正這個問題,請執行:
chmod +x ./gradlew
現在你應該就能執行先前的指令了。
解開這個練習。找到並跟著instructions.append.md指南操作(在 GitHub 上查看)。
祝你好運!玩得開心!