Running the Tests

Choose your operating system:


Windows

  1. Open a Command Prompt.
  2. Get the first exercise:

    1
    2
    3
    4
    5
    6
    7
    8
    9
     C:\Users\JohnDoe>exercism fetch java
    
     Not Submitted:     1 problem
     java (Hello World) C:\Users\JohnDoe\exercism\java\hello-world
    
     New:               1 problem
     java (Hello World) C:\Users\JohnDoe\exercism\java\hello-world
    
     unchanged: 0, updated: 0, new: 1
    
  3. Change directory into the exercism:

    1
     C:\Users\JohnDoe>cd C:\Users\JohnDoe\exercism\java\hello-world
    
  4. Run the tests:

    1
     C:\Users\JohnDoe>gradle test
    

    (Don't worry about the tests failing, at first, this is how you begin each exercise.)

  5. Solve the exercise. Find and work through the TUTORIAL.md guide (view on GitHub).

Good luck! Have fun!

If you get stuck, at any point, don't forget to reach out for help.


Mac OS X

  1. In the terminal window, get the first exercise:

    1
    2
    3
    4
    5
    6
     $ exercism fetch java
    
     New:                 1 problem
     Java (Etl) /Users/johndoe/exercism/java/hello-world
    
     unchanged: 0, updated: 0, new: 1
    
  2. Change directory into the exercise:

    1
     $ cd /Users/johndoe/exercism/java/hello-world
    
  3. Run the tests:

    1
    $ gradle test
    

    (Don't worry about the tests failing, at first, this is how you begin each exercise.)

  4. Solve the exercise. Find and work through the TUTORIAL.md guide (view on GitHub).

Good luck! Have fun!

If you get stuck, at any point, don't forget to reach out for help.


Linux

  1. In the terminal window, get the first exercise:

    1
    2
    3
    4
    5
    6
    7
     $ exercism fetch java
    
     New:                 1 problem
     Java (Etl) /home/johndoe/exercism/java/hello-world
    
     unchanged: 0, updated: 0, new: 1
    
    
  2. Change directory into the exercise:

    1
     $ cd /home/johndoe/exercism/java/hello-world
    
  3. Run the tests:

    1
    $ gradle test
    

    (Don't worry about the tests failing, at first, this is how you begin each exercise.)

  4. Solve the exercise. Find and work through the TUTORIAL.md guide (view on GitHub).

Good luck! Have fun!

If you get stuck, at any point, don't forget to reach out for help.


Help us explain this better! File a GitHub issue at https://github.com/exercism/java/issues if you have suggestions, or submit a patch with improvements to the https://github.com/exercism/java/blob/master/docs/TESTS.md file.