Testing on the COBOL track

Learn how to test your COBOL exercises on Exercism


Choose your current OS:

Windows

  1. Open a Command Prompt.

  2. Get the first exercise:

     C:\Users\USERNAME> exercism download --exercise hello-world --track cobol
    
  3. Change directory into the exercise folder:

     C:\Users\USERNAME> cd C:\Users\USERNAME\exercism\cobol\hello-world
    
  4. Run the tests:

     C:\Users\USERNAME\exercism\cobol\hello-world> test.ps1
    

    (Don't worry if the tests fail when you first run them, this is how you begin each exercise.)

  5. Solve the exercise. Read through the instructions.md and see how to solve the exercise (view on GitHub).

Good luck, have fun and welcome to the COBOL track!


macOS

  1. Open a Terminal window.

  2. Get the first exercise:

     $ exercism download --exercise hello-world --track cobol
    
  3. Change directory into the exercise folder:

     $ cd /Users/USERNAME/exercism/cobol/hello-world
    
  4. Run the tests:

     $ bash test.sh
    

    (Don't worry if the tests fail when you first run them, this is how you begin each exercise.)

    Hint: If you get a message that basename is missing, you can use brew to install coreutils. (brew install coreutils)

  5. Solve the exercise.

    Read through the instructions.md and see how to solve the exercise (view on GitHub).

Good luck, have fun and welcome to the COBOL track!


Linux

  1. Open a Terminal window.

  2. Get the first exercise:

     $ exercism download --exercise hello-world --track cobol
    
  3. Change directory into the exercise folder:

    $ cd /home/USERNAME/exercism/cobol/hello-world
    
  4. Run the tests:

     $ bash test.sh
    

    (Don't worry if the tests fail when you first run them, this is how you begin each exercise.)

  5. Solve the exercise.

    Read through the instructions.md and see how to solve the exercise (view on GitHub).

Good luck, have fun and welcome to the COBOL track!