Skip to content

hello-world: Add a 'running the tests' section #533

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions exercises/hello-world/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@ The objectives are simple:

If everything goes well, you will be ready to fetch your first real exercise.

## Running the tests

To run the tests run the command `python <exercise>_test.py`. Or run it with
`-v` to be more verbose like this: `python <exercise>_test.py`. Using the
`-f` flag will cause the test to fail at the first failure instead of it
trying all cases before exiting.

To run this exercises's tests for example, run this command:

python hello_world_test.py -v

## Exception messages

Sometimes it is necessary to raise an exception. When you do this, you should include a meaningful error message to
Expand Down