diff --git a/config/exercise_readme.go.tmpl b/config/exercise_readme.go.tmpl index ab739fb652..723fda5b7b 100644 --- a/config/exercise_readme.go.tmpl +++ b/config/exercise_readme.go.tmpl @@ -18,6 +18,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test {{ .Spec.SnakeCaseName }}_test.py` +- Python 3.3+: `pytest {{ .Spec.SnakeCaseName }}_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest {{ .Spec.SnakeCaseName }}_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/{{ .Spec.Slug }}` directory. diff --git a/exercises/accumulate/README.md b/exercises/accumulate/README.md index 1acacb0bdb..9cb4b9230d 100644 --- a/exercises/accumulate/README.md +++ b/exercises/accumulate/README.md @@ -39,6 +39,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test accumulate_test.py` +- Python 3.3+: `pytest accumulate_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest accumulate_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/accumulate` directory. diff --git a/exercises/acronym/README.md b/exercises/acronym/README.md index 2ad35ef586..489e32c2b2 100644 --- a/exercises/acronym/README.md +++ b/exercises/acronym/README.md @@ -21,6 +21,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test acronym_test.py` +- Python 3.3+: `pytest acronym_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest acronym_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/acronym` directory. diff --git a/exercises/all-your-base/README.md b/exercises/all-your-base/README.md index ebd6c33611..6e721e7745 100644 --- a/exercises/all-your-base/README.md +++ b/exercises/all-your-base/README.md @@ -45,6 +45,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test all_your_base_test.py` +- Python 3.3+: `pytest all_your_base_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest all_your_base_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/all-your-base` directory. diff --git a/exercises/allergies/README.md b/exercises/allergies/README.md index 732046d586..752f374979 100644 --- a/exercises/allergies/README.md +++ b/exercises/allergies/README.md @@ -43,6 +43,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test allergies_test.py` +- Python 3.3+: `pytest allergies_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest allergies_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/allergies` directory. diff --git a/exercises/alphametics/README.md b/exercises/alphametics/README.md index ab43458410..622b9a493e 100644 --- a/exercises/alphametics/README.md +++ b/exercises/alphametics/README.md @@ -45,6 +45,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test alphametics_test.py` +- Python 3.3+: `pytest alphametics_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest alphametics_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/alphametics` directory. diff --git a/exercises/anagram/README.md b/exercises/anagram/README.md index 308803797d..dafa0da5de 100644 --- a/exercises/anagram/README.md +++ b/exercises/anagram/README.md @@ -20,6 +20,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test anagram_test.py` +- Python 3.3+: `pytest anagram_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest anagram_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/anagram` directory. diff --git a/exercises/armstrong-numbers/README.md b/exercises/armstrong-numbers/README.md index 94fbb9c3db..585d1fdaaf 100644 --- a/exercises/armstrong-numbers/README.md +++ b/exercises/armstrong-numbers/README.md @@ -25,6 +25,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test armstrong_numbers_test.py` +- Python 3.3+: `pytest armstrong_numbers_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest armstrong_numbers_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/armstrong-numbers` directory. diff --git a/exercises/atbash-cipher/README.md b/exercises/atbash-cipher/README.md index d30ef2c348..c83007455b 100644 --- a/exercises/atbash-cipher/README.md +++ b/exercises/atbash-cipher/README.md @@ -42,6 +42,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test atbash_cipher_test.py` +- Python 3.3+: `pytest atbash_cipher_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest atbash_cipher_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/atbash-cipher` directory. diff --git a/exercises/beer-song/README.md b/exercises/beer-song/README.md index d7f9cb6200..c6e7bc03d3 100644 --- a/exercises/beer-song/README.md +++ b/exercises/beer-song/README.md @@ -334,6 +334,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test beer_song_test.py` +- Python 3.3+: `pytest beer_song_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest beer_song_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/beer-song` directory. diff --git a/exercises/binary-search-tree/README.md b/exercises/binary-search-tree/README.md index 6a9de9c342..2fb3d55155 100644 --- a/exercises/binary-search-tree/README.md +++ b/exercises/binary-search-tree/README.md @@ -67,6 +67,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test binary_search_tree_test.py` +- Python 3.3+: `pytest binary_search_tree_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest binary_search_tree_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/binary-search-tree` directory. diff --git a/exercises/binary-search/README.md b/exercises/binary-search/README.md index e1ff286962..34948c18bf 100644 --- a/exercises/binary-search/README.md +++ b/exercises/binary-search/README.md @@ -48,6 +48,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test binary_search_test.py` +- Python 3.3+: `pytest binary_search_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest binary_search_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/binary-search` directory. diff --git a/exercises/binary/README.md b/exercises/binary/README.md index dbaebb5db9..66c1ba0503 100644 --- a/exercises/binary/README.md +++ b/exercises/binary/README.md @@ -44,6 +44,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test binary_test.py` +- Python 3.3+: `pytest binary_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest binary_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/binary` directory. diff --git a/exercises/bob/README.md b/exercises/bob/README.md index 2fcee0a913..a7073834c2 100644 --- a/exercises/bob/README.md +++ b/exercises/bob/README.md @@ -27,6 +27,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test bob_test.py` +- Python 3.3+: `pytest bob_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest bob_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/bob` directory. diff --git a/exercises/book-store/README.md b/exercises/book-store/README.md index 483e561477..c15756ace7 100644 --- a/exercises/book-store/README.md +++ b/exercises/book-store/README.md @@ -81,6 +81,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test book_store_test.py` +- Python 3.3+: `pytest book_store_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest book_store_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/book-store` directory. diff --git a/exercises/bowling/README.md b/exercises/bowling/README.md index 71a84607a2..2d6f26750d 100644 --- a/exercises/bowling/README.md +++ b/exercises/bowling/README.md @@ -74,6 +74,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test bowling_test.py` +- Python 3.3+: `pytest bowling_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest bowling_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/bowling` directory. diff --git a/exercises/bracket-push/README.md b/exercises/bracket-push/README.md index 620ee97a57..8d42efbc20 100644 --- a/exercises/bracket-push/README.md +++ b/exercises/bracket-push/README.md @@ -17,6 +17,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test bracket_push_test.py` +- Python 3.3+: `pytest bracket_push_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest bracket_push_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/bracket-push` directory. diff --git a/exercises/change/README.md b/exercises/change/README.md index 07824338b6..a1613b4cdb 100644 --- a/exercises/change/README.md +++ b/exercises/change/README.md @@ -30,6 +30,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test change_test.py` +- Python 3.3+: `pytest change_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest change_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/change` directory. diff --git a/exercises/circular-buffer/README.md b/exercises/circular-buffer/README.md index b0d71e3c68..e65b341eda 100644 --- a/exercises/circular-buffer/README.md +++ b/exercises/circular-buffer/README.md @@ -64,6 +64,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test circular_buffer_test.py` +- Python 3.3+: `pytest circular_buffer_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest circular_buffer_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/circular-buffer` directory. diff --git a/exercises/clock/README.md b/exercises/clock/README.md index 696ff897b4..d1c1ab655d 100644 --- a/exercises/clock/README.md +++ b/exercises/clock/README.md @@ -20,6 +20,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test clock_test.py` +- Python 3.3+: `pytest clock_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest clock_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/clock` directory. diff --git a/exercises/collatz-conjecture/README.md b/exercises/collatz-conjecture/README.md index 6180a0485a..4d879b747b 100644 --- a/exercises/collatz-conjecture/README.md +++ b/exercises/collatz-conjecture/README.md @@ -45,6 +45,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test collatz_conjecture_test.py` +- Python 3.3+: `pytest collatz_conjecture_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest collatz_conjecture_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/collatz-conjecture` directory. diff --git a/exercises/complex-numbers/README.md b/exercises/complex-numbers/README.md index 33adff16c9..53d4a15350 100644 --- a/exercises/complex-numbers/README.md +++ b/exercises/complex-numbers/README.md @@ -50,6 +50,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test complex_numbers_test.py` +- Python 3.3+: `pytest complex_numbers_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest complex_numbers_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/complex-numbers` directory. diff --git a/exercises/connect/README.md b/exercises/connect/README.md index 2e3ed952a7..9bc29c0fa6 100644 --- a/exercises/connect/README.md +++ b/exercises/connect/README.md @@ -44,6 +44,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test connect_test.py` +- Python 3.3+: `pytest connect_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest connect_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/connect` directory. diff --git a/exercises/crypto-square/README.md b/exercises/crypto-square/README.md index 93953dbed4..acc8dfbd73 100644 --- a/exercises/crypto-square/README.md +++ b/exercises/crypto-square/README.md @@ -83,6 +83,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test crypto_square_test.py` +- Python 3.3+: `pytest crypto_square_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest crypto_square_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/crypto-square` directory. diff --git a/exercises/custom-set/README.md b/exercises/custom-set/README.md index 4a4a2b7b77..18ce3255d6 100644 --- a/exercises/custom-set/README.md +++ b/exercises/custom-set/README.md @@ -21,6 +21,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test custom_set_test.py` +- Python 3.3+: `pytest custom_set_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest custom_set_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/custom-set` directory. diff --git a/exercises/diamond/README.md b/exercises/diamond/README.md index 408172c32a..05ef15e613 100644 --- a/exercises/diamond/README.md +++ b/exercises/diamond/README.md @@ -66,6 +66,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test diamond_test.py` +- Python 3.3+: `pytest diamond_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest diamond_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/diamond` directory. diff --git a/exercises/difference-of-squares/README.md b/exercises/difference-of-squares/README.md index 027d8c484f..d8f8a3965e 100644 --- a/exercises/difference-of-squares/README.md +++ b/exercises/difference-of-squares/README.md @@ -26,6 +26,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test difference_of_squares_test.py` +- Python 3.3+: `pytest difference_of_squares_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest difference_of_squares_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/difference-of-squares` directory. diff --git a/exercises/diffie-hellman/README.md b/exercises/diffie-hellman/README.md index d7c1bc5ff5..9110cf722e 100644 --- a/exercises/diffie-hellman/README.md +++ b/exercises/diffie-hellman/README.md @@ -68,6 +68,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test diffie_hellman_test.py` +- Python 3.3+: `pytest diffie_hellman_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest diffie_hellman_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/diffie-hellman` directory. diff --git a/exercises/dominoes/README.md b/exercises/dominoes/README.md index eace049598..d076968c34 100644 --- a/exercises/dominoes/README.md +++ b/exercises/dominoes/README.md @@ -28,6 +28,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test dominoes_test.py` +- Python 3.3+: `pytest dominoes_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest dominoes_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/dominoes` directory. diff --git a/exercises/dot-dsl/README.md b/exercises/dot-dsl/README.md index 2a39752f28..1aa24b0c4b 100644 --- a/exercises/dot-dsl/README.md +++ b/exercises/dot-dsl/README.md @@ -54,6 +54,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test dot_dsl_test.py` +- Python 3.3+: `pytest dot_dsl_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest dot_dsl_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/dot-dsl` directory. diff --git a/exercises/error-handling/README.md b/exercises/error-handling/README.md index 338aca7ff2..6a5c29e7d5 100644 --- a/exercises/error-handling/README.md +++ b/exercises/error-handling/README.md @@ -33,6 +33,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test error_handling_test.py` +- Python 3.3+: `pytest error_handling_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest error_handling_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/error-handling` directory. diff --git a/exercises/etl/README.md b/exercises/etl/README.md index 833de31eed..149737ef91 100644 --- a/exercises/etl/README.md +++ b/exercises/etl/README.md @@ -60,6 +60,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test etl_test.py` +- Python 3.3+: `pytest etl_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest etl_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/etl` directory. diff --git a/exercises/flatten-array/README.md b/exercises/flatten-array/README.md index 8063da56e9..05203da96b 100644 --- a/exercises/flatten-array/README.md +++ b/exercises/flatten-array/README.md @@ -24,6 +24,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test flatten_array_test.py` +- Python 3.3+: `pytest flatten_array_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest flatten_array_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/flatten-array` directory. diff --git a/exercises/food-chain/README.md b/exercises/food-chain/README.md index c7531d2e96..5edf552ddd 100644 --- a/exercises/food-chain/README.md +++ b/exercises/food-chain/README.md @@ -77,6 +77,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test food_chain_test.py` +- Python 3.3+: `pytest food_chain_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest food_chain_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/food-chain` directory. diff --git a/exercises/forth/README.md b/exercises/forth/README.md index 80643cc8e3..af608c4d72 100644 --- a/exercises/forth/README.md +++ b/exercises/forth/README.md @@ -39,6 +39,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test forth_test.py` +- Python 3.3+: `pytest forth_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest forth_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/forth` directory. diff --git a/exercises/gigasecond/README.md b/exercises/gigasecond/README.md index 90b5e14796..50c7c7b760 100644 --- a/exercises/gigasecond/README.md +++ b/exercises/gigasecond/README.md @@ -18,6 +18,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test gigasecond_test.py` +- Python 3.3+: `pytest gigasecond_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest gigasecond_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/gigasecond` directory. diff --git a/exercises/go-counting/README.md b/exercises/go-counting/README.md index 1baaa0cc73..857528ea46 100644 --- a/exercises/go-counting/README.md +++ b/exercises/go-counting/README.md @@ -47,6 +47,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test go_counting_test.py` +- Python 3.3+: `pytest go_counting_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest go_counting_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/go-counting` directory. diff --git a/exercises/grade-school/README.md b/exercises/grade-school/README.md index c8b758cabb..9ede61a59e 100644 --- a/exercises/grade-school/README.md +++ b/exercises/grade-school/README.md @@ -48,6 +48,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test grade_school_test.py` +- Python 3.3+: `pytest grade_school_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest grade_school_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/grade-school` directory. diff --git a/exercises/grains/README.md b/exercises/grains/README.md index 6ad3f9584a..4fc98b83f6 100644 --- a/exercises/grains/README.md +++ b/exercises/grains/README.md @@ -40,6 +40,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test grains_test.py` +- Python 3.3+: `pytest grains_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest grains_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/grains` directory. diff --git a/exercises/grep/README.md b/exercises/grep/README.md index 687911587c..954e53edd5 100644 --- a/exercises/grep/README.md +++ b/exercises/grep/README.md @@ -78,6 +78,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test grep_test.py` +- Python 3.3+: `pytest grep_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest grep_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/grep` directory. diff --git a/exercises/hamming/README.md b/exercises/hamming/README.md index 4dcc99ca0b..27566f7ebd 100644 --- a/exercises/hamming/README.md +++ b/exercises/hamming/README.md @@ -49,6 +49,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test hamming_test.py` +- Python 3.3+: `pytest hamming_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest hamming_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/hamming` directory. diff --git a/exercises/hello-world/README.md b/exercises/hello-world/README.md index 885d3b5240..3e5b125b51 100644 --- a/exercises/hello-world/README.md +++ b/exercises/hello-world/README.md @@ -28,6 +28,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test hello_world_test.py` +- Python 3.3+: `pytest hello_world_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest hello_world_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/hello-world` directory. diff --git a/exercises/hexadecimal/README.md b/exercises/hexadecimal/README.md index 2e4c1664d9..6cadd15079 100644 --- a/exercises/hexadecimal/README.md +++ b/exercises/hexadecimal/README.md @@ -21,6 +21,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test hexadecimal_test.py` +- Python 3.3+: `pytest hexadecimal_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest hexadecimal_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/hexadecimal` directory. diff --git a/exercises/house/README.md b/exercises/house/README.md index 65722b5301..d7b709dd3b 100644 --- a/exercises/house/README.md +++ b/exercises/house/README.md @@ -119,6 +119,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test house_test.py` +- Python 3.3+: `pytest house_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest house_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/house` directory. diff --git a/exercises/isbn-verifier/README.md b/exercises/isbn-verifier/README.md index 1067f16b05..27809cd4c3 100644 --- a/exercises/isbn-verifier/README.md +++ b/exercises/isbn-verifier/README.md @@ -54,6 +54,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test isbn_verifier_test.py` +- Python 3.3+: `pytest isbn_verifier_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest isbn_verifier_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/isbn-verifier` directory. diff --git a/exercises/isogram/README.md b/exercises/isogram/README.md index edb8898359..152480b7ab 100644 --- a/exercises/isogram/README.md +++ b/exercises/isogram/README.md @@ -27,6 +27,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test isogram_test.py` +- Python 3.3+: `pytest isogram_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest isogram_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/isogram` directory. diff --git a/exercises/kindergarten-garden/README.md b/exercises/kindergarten-garden/README.md index f512349d80..ba8a087a83 100644 --- a/exercises/kindergarten-garden/README.md +++ b/exercises/kindergarten-garden/README.md @@ -73,6 +73,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test kindergarten_garden_test.py` +- Python 3.3+: `pytest kindergarten_garden_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest kindergarten_garden_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/kindergarten-garden` directory. diff --git a/exercises/largest-series-product/README.md b/exercises/largest-series-product/README.md index 3e6e236d85..36dcf1231f 100644 --- a/exercises/largest-series-product/README.md +++ b/exercises/largest-series-product/README.md @@ -27,6 +27,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test largest_series_product_test.py` +- Python 3.3+: `pytest largest_series_product_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest largest_series_product_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/largest-series-product` directory. diff --git a/exercises/leap/README.md b/exercises/leap/README.md index 9b65afb240..0166070cd5 100644 --- a/exercises/leap/README.md +++ b/exercises/leap/README.md @@ -40,6 +40,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test leap_test.py` +- Python 3.3+: `pytest leap_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest leap_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/leap` directory. diff --git a/exercises/linked-list/README.md b/exercises/linked-list/README.md index 2207c2e469..d3cd3b58b2 100644 --- a/exercises/linked-list/README.md +++ b/exercises/linked-list/README.md @@ -41,6 +41,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test linked_list_test.py` +- Python 3.3+: `pytest linked_list_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest linked_list_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/linked-list` directory. diff --git a/exercises/list-ops/README.md b/exercises/list-ops/README.md index 1662001e8e..acb0869ab4 100644 --- a/exercises/list-ops/README.md +++ b/exercises/list-ops/README.md @@ -20,6 +20,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test list_ops_test.py` +- Python 3.3+: `pytest list_ops_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest list_ops_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/list-ops` directory. diff --git a/exercises/luhn/README.md b/exercises/luhn/README.md index b1432b5f80..2ae8f805c4 100644 --- a/exercises/luhn/README.md +++ b/exercises/luhn/README.md @@ -78,6 +78,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test luhn_test.py` +- Python 3.3+: `pytest luhn_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest luhn_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/luhn` directory. diff --git a/exercises/markdown/README.md b/exercises/markdown/README.md index 4f7a7d100d..5ecf15c0cc 100644 --- a/exercises/markdown/README.md +++ b/exercises/markdown/README.md @@ -28,6 +28,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test markdown_test.py` +- Python 3.3+: `pytest markdown_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest markdown_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/markdown` directory. diff --git a/exercises/matrix/README.md b/exercises/matrix/README.md index d89879ebe2..d71988ab63 100644 --- a/exercises/matrix/README.md +++ b/exercises/matrix/README.md @@ -54,6 +54,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test matrix_test.py` +- Python 3.3+: `pytest matrix_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest matrix_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/matrix` directory. diff --git a/exercises/meetup/README.md b/exercises/meetup/README.md index 9139bf25fa..a5919cff46 100644 --- a/exercises/meetup/README.md +++ b/exercises/meetup/README.md @@ -40,6 +40,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test meetup_test.py` +- Python 3.3+: `pytest meetup_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest meetup_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/meetup` directory. diff --git a/exercises/minesweeper/README.md b/exercises/minesweeper/README.md index 33d283c781..2382b3350f 100644 --- a/exercises/minesweeper/README.md +++ b/exercises/minesweeper/README.md @@ -40,6 +40,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test minesweeper_test.py` +- Python 3.3+: `pytest minesweeper_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest minesweeper_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/minesweeper` directory. diff --git a/exercises/nth-prime/README.md b/exercises/nth-prime/README.md index 1fa13527eb..09076e72f0 100644 --- a/exercises/nth-prime/README.md +++ b/exercises/nth-prime/README.md @@ -22,6 +22,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test nth_prime_test.py` +- Python 3.3+: `pytest nth_prime_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest nth_prime_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/nth-prime` directory. diff --git a/exercises/nucleotide-count/README.md b/exercises/nucleotide-count/README.md index 957ad14903..5470c1d1df 100644 --- a/exercises/nucleotide-count/README.md +++ b/exercises/nucleotide-count/README.md @@ -26,6 +26,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test nucleotide_count_test.py` +- Python 3.3+: `pytest nucleotide_count_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest nucleotide_count_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/nucleotide-count` directory. diff --git a/exercises/ocr-numbers/README.md b/exercises/ocr-numbers/README.md index 44cebf86f0..e8d13e1d73 100644 --- a/exercises/ocr-numbers/README.md +++ b/exercises/ocr-numbers/README.md @@ -92,6 +92,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test ocr_numbers_test.py` +- Python 3.3+: `pytest ocr_numbers_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest ocr_numbers_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/ocr-numbers` directory. diff --git a/exercises/octal/README.md b/exercises/octal/README.md index 449b551b16..1d9b9d6388 100644 --- a/exercises/octal/README.md +++ b/exercises/octal/README.md @@ -60,6 +60,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test octal_test.py` +- Python 3.3+: `pytest octal_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest octal_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/octal` directory. diff --git a/exercises/palindrome-products/README.md b/exercises/palindrome-products/README.md index a6e91823a9..a1afd08a89 100644 --- a/exercises/palindrome-products/README.md +++ b/exercises/palindrome-products/README.md @@ -46,6 +46,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test palindrome_products_test.py` +- Python 3.3+: `pytest palindrome_products_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest palindrome_products_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/palindrome-products` directory. diff --git a/exercises/pangram/README.md b/exercises/pangram/README.md index ff990708b2..2e5fa4181d 100644 --- a/exercises/pangram/README.md +++ b/exercises/pangram/README.md @@ -22,6 +22,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test pangram_test.py` +- Python 3.3+: `pytest pangram_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest pangram_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/pangram` directory. diff --git a/exercises/parallel-letter-frequency/README.md b/exercises/parallel-letter-frequency/README.md index 76f5523edf..477f9317cd 100644 --- a/exercises/parallel-letter-frequency/README.md +++ b/exercises/parallel-letter-frequency/README.md @@ -21,6 +21,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test parallel_letter_frequency_test.py` +- Python 3.3+: `pytest parallel_letter_frequency_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest parallel_letter_frequency_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/parallel-letter-frequency` directory. diff --git a/exercises/pascals-triangle/README.md b/exercises/pascals-triangle/README.md index 7d822eb310..bb7ca751fd 100644 --- a/exercises/pascals-triangle/README.md +++ b/exercises/pascals-triangle/README.md @@ -28,6 +28,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test pascals_triangle_test.py` +- Python 3.3+: `pytest pascals_triangle_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest pascals_triangle_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/pascals-triangle` directory. diff --git a/exercises/perfect-numbers/README.md b/exercises/perfect-numbers/README.md index a34b0aa59c..bb130d57a6 100644 --- a/exercises/perfect-numbers/README.md +++ b/exercises/perfect-numbers/README.md @@ -31,6 +31,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test perfect_numbers_test.py` +- Python 3.3+: `pytest perfect_numbers_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest perfect_numbers_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/perfect-numbers` directory. diff --git a/exercises/phone-number/README.md b/exercises/phone-number/README.md index 270f71e4c0..581302b029 100644 --- a/exercises/phone-number/README.md +++ b/exercises/phone-number/README.md @@ -42,6 +42,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test phone_number_test.py` +- Python 3.3+: `pytest phone_number_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest phone_number_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/phone-number` directory. diff --git a/exercises/pig-latin/README.md b/exercises/pig-latin/README.md index 9b3a9a926c..6a68117bba 100644 --- a/exercises/pig-latin/README.md +++ b/exercises/pig-latin/README.md @@ -31,6 +31,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test pig_latin_test.py` +- Python 3.3+: `pytest pig_latin_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest pig_latin_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/pig-latin` directory. diff --git a/exercises/point-mutations/README.md b/exercises/point-mutations/README.md index 75c98cca1c..dce6b700d2 100644 --- a/exercises/point-mutations/README.md +++ b/exercises/point-mutations/README.md @@ -48,6 +48,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test point_mutations_test.py` +- Python 3.3+: `pytest point_mutations_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest point_mutations_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/point-mutations` directory. diff --git a/exercises/poker/README.md b/exercises/poker/README.md index 360891f925..9d62cfa552 100644 --- a/exercises/poker/README.md +++ b/exercises/poker/README.md @@ -19,6 +19,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test poker_test.py` +- Python 3.3+: `pytest poker_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest poker_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/poker` directory. diff --git a/exercises/pov/README.md b/exercises/pov/README.md index f3344a7663..170ac0dff9 100644 --- a/exercises/pov/README.md +++ b/exercises/pov/README.md @@ -51,6 +51,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test pov_test.py` +- Python 3.3+: `pytest pov_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest pov_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/pov` directory. diff --git a/exercises/prime-factors/README.md b/exercises/prime-factors/README.md index 7fc3a0a23b..cf2260c6c3 100644 --- a/exercises/prime-factors/README.md +++ b/exercises/prime-factors/README.md @@ -43,6 +43,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test prime_factors_test.py` +- Python 3.3+: `pytest prime_factors_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest prime_factors_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/prime-factors` directory. diff --git a/exercises/protein-translation/README.md b/exercises/protein-translation/README.md index d1886a18a4..0dab8ed6a7 100644 --- a/exercises/protein-translation/README.md +++ b/exercises/protein-translation/README.md @@ -55,6 +55,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test protein_translation_test.py` +- Python 3.3+: `pytest protein_translation_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest protein_translation_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/protein-translation` directory. diff --git a/exercises/proverb/README.md b/exercises/proverb/README.md index ed3434097a..50c18520f1 100644 --- a/exercises/proverb/README.md +++ b/exercises/proverb/README.md @@ -30,6 +30,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test proverb_test.py` +- Python 3.3+: `pytest proverb_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest proverb_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/proverb` directory. diff --git a/exercises/pythagorean-triplet/README.md b/exercises/pythagorean-triplet/README.md index a933263e81..33dcc5d739 100644 --- a/exercises/pythagorean-triplet/README.md +++ b/exercises/pythagorean-triplet/README.md @@ -31,6 +31,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test pythagorean_triplet_test.py` +- Python 3.3+: `pytest pythagorean_triplet_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest pythagorean_triplet_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/pythagorean-triplet` directory. diff --git a/exercises/queen-attack/README.md b/exercises/queen-attack/README.md index 215c183c91..5163ef91a3 100644 --- a/exercises/queen-attack/README.md +++ b/exercises/queen-attack/README.md @@ -40,6 +40,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test queen_attack_test.py` +- Python 3.3+: `pytest queen_attack_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest queen_attack_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/queen-attack` directory. diff --git a/exercises/rail-fence-cipher/README.md b/exercises/rail-fence-cipher/README.md index fa13001460..06aa7e590d 100644 --- a/exercises/rail-fence-cipher/README.md +++ b/exercises/rail-fence-cipher/README.md @@ -72,6 +72,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test rail_fence_cipher_test.py` +- Python 3.3+: `pytest rail_fence_cipher_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest rail_fence_cipher_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/rail-fence-cipher` directory. diff --git a/exercises/raindrops/README.md b/exercises/raindrops/README.md index 4b1cbe342b..a70a8744b1 100644 --- a/exercises/raindrops/README.md +++ b/exercises/raindrops/README.md @@ -31,6 +31,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test raindrops_test.py` +- Python 3.3+: `pytest raindrops_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest raindrops_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/raindrops` directory. diff --git a/exercises/react/README.md b/exercises/react/README.md index 664eceb277..4101b60111 100644 --- a/exercises/react/README.md +++ b/exercises/react/README.md @@ -29,6 +29,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test react_test.py` +- Python 3.3+: `pytest react_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest react_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/react` directory. diff --git a/exercises/rectangles/README.md b/exercises/rectangles/README.md index a298ebcb62..31f9b273ad 100644 --- a/exercises/rectangles/README.md +++ b/exercises/rectangles/README.md @@ -77,6 +77,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test rectangles_test.py` +- Python 3.3+: `pytest rectangles_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest rectangles_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/rectangles` directory. diff --git a/exercises/reverse-string/README.md b/exercises/reverse-string/README.md index 8d14e7e51b..c63c49b6b9 100644 --- a/exercises/reverse-string/README.md +++ b/exercises/reverse-string/README.md @@ -20,6 +20,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test reverse_string_test.py` +- Python 3.3+: `pytest reverse_string_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest reverse_string_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/reverse-string` directory. diff --git a/exercises/rna-transcription/README.md b/exercises/rna-transcription/README.md index 87eafae7ef..b7c01fc89d 100644 --- a/exercises/rna-transcription/README.md +++ b/exercises/rna-transcription/README.md @@ -35,6 +35,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test rna_transcription_test.py` +- Python 3.3+: `pytest rna_transcription_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest rna_transcription_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/rna-transcription` directory. diff --git a/exercises/robot-name/README.md b/exercises/robot-name/README.md index 40905ff57f..51a03fc316 100644 --- a/exercises/robot-name/README.md +++ b/exercises/robot-name/README.md @@ -29,6 +29,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test robot_name_test.py` +- Python 3.3+: `pytest robot_name_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest robot_name_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/robot-name` directory. diff --git a/exercises/robot-simulator/README.md b/exercises/robot-simulator/README.md index 24f15c21ac..44e55ee89a 100644 --- a/exercises/robot-simulator/README.md +++ b/exercises/robot-simulator/README.md @@ -41,6 +41,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test robot_simulator_test.py` +- Python 3.3+: `pytest robot_simulator_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest robot_simulator_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/robot-simulator` directory. diff --git a/exercises/roman-numerals/README.md b/exercises/roman-numerals/README.md index 8cd9aa1ba2..edf49d030e 100644 --- a/exercises/roman-numerals/README.md +++ b/exercises/roman-numerals/README.md @@ -56,6 +56,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test roman_numerals_test.py` +- Python 3.3+: `pytest roman_numerals_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest roman_numerals_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/roman-numerals` directory. diff --git a/exercises/rotational-cipher/README.md b/exercises/rotational-cipher/README.md index 7d9b7ad992..c79f222570 100644 --- a/exercises/rotational-cipher/README.md +++ b/exercises/rotational-cipher/README.md @@ -44,6 +44,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test rotational_cipher_test.py` +- Python 3.3+: `pytest rotational_cipher_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest rotational_cipher_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/rotational-cipher` directory. diff --git a/exercises/run-length-encoding/README.md b/exercises/run-length-encoding/README.md index bce40597e7..1dacdb76dd 100644 --- a/exercises/run-length-encoding/README.md +++ b/exercises/run-length-encoding/README.md @@ -37,6 +37,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test run_length_encoding_test.py` +- Python 3.3+: `pytest run_length_encoding_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest run_length_encoding_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/run-length-encoding` directory. diff --git a/exercises/saddle-points/README.md b/exercises/saddle-points/README.md index 757d6ed46d..758e17b676 100644 --- a/exercises/saddle-points/README.md +++ b/exercises/saddle-points/README.md @@ -40,6 +40,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test saddle_points_test.py` +- Python 3.3+: `pytest saddle_points_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest saddle_points_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/saddle-points` directory. diff --git a/exercises/say/README.md b/exercises/say/README.md index 41648422a8..e8f59898da 100644 --- a/exercises/say/README.md +++ b/exercises/say/README.md @@ -76,6 +76,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test say_test.py` +- Python 3.3+: `pytest say_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest say_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/say` directory. diff --git a/exercises/scale-generator/README.md b/exercises/scale-generator/README.md index 8ca4c46250..80cadfb227 100644 --- a/exercises/scale-generator/README.md +++ b/exercises/scale-generator/README.md @@ -69,6 +69,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test scale_generator_test.py` +- Python 3.3+: `pytest scale_generator_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest scale_generator_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/scale-generator` directory. diff --git a/exercises/scrabble-score/README.md b/exercises/scrabble-score/README.md index 895179f2c9..f80f2ba3f1 100644 --- a/exercises/scrabble-score/README.md +++ b/exercises/scrabble-score/README.md @@ -53,6 +53,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test scrabble_score_test.py` +- Python 3.3+: `pytest scrabble_score_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest scrabble_score_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/scrabble-score` directory. diff --git a/exercises/secret-handshake/README.md b/exercises/secret-handshake/README.md index 9f52ea2c52..1eba9fc36e 100644 --- a/exercises/secret-handshake/README.md +++ b/exercises/secret-handshake/README.md @@ -42,6 +42,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test secret_handshake_test.py` +- Python 3.3+: `pytest secret_handshake_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest secret_handshake_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/secret-handshake` directory. diff --git a/exercises/series/README.md b/exercises/series/README.md index 0049c5dfd9..a34c51ebf1 100644 --- a/exercises/series/README.md +++ b/exercises/series/README.md @@ -34,6 +34,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test series_test.py` +- Python 3.3+: `pytest series_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest series_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/series` directory. diff --git a/exercises/sieve/README.md b/exercises/sieve/README.md index a8d686670a..70c8dcae03 100644 --- a/exercises/sieve/README.md +++ b/exercises/sieve/README.md @@ -41,6 +41,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test sieve_test.py` +- Python 3.3+: `pytest sieve_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest sieve_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/sieve` directory. diff --git a/exercises/simple-cipher/README.md b/exercises/simple-cipher/README.md index 3a7984564f..9568b99917 100644 --- a/exercises/simple-cipher/README.md +++ b/exercises/simple-cipher/README.md @@ -113,6 +113,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test simple_cipher_test.py` +- Python 3.3+: `pytest simple_cipher_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest simple_cipher_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/simple-cipher` directory. diff --git a/exercises/simple-linked-list/README.md b/exercises/simple-linked-list/README.md index 664c475530..c2ef7df70a 100644 --- a/exercises/simple-linked-list/README.md +++ b/exercises/simple-linked-list/README.md @@ -47,6 +47,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test simple_linked_list_test.py` +- Python 3.3+: `pytest simple_linked_list_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest simple_linked_list_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/simple-linked-list` directory. diff --git a/exercises/space-age/README.md b/exercises/space-age/README.md index e9b5fdf32e..ae4e5deda2 100644 --- a/exercises/space-age/README.md +++ b/exercises/space-age/README.md @@ -31,6 +31,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test space_age_test.py` +- Python 3.3+: `pytest space_age_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest space_age_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/space-age` directory. diff --git a/exercises/spiral-matrix/README.md b/exercises/spiral-matrix/README.md index 4fb24c8252..5a0d4c89cf 100644 --- a/exercises/spiral-matrix/README.md +++ b/exercises/spiral-matrix/README.md @@ -37,6 +37,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test spiral_matrix_test.py` +- Python 3.3+: `pytest spiral_matrix_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest spiral_matrix_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/spiral-matrix` directory. diff --git a/exercises/strain/README.md b/exercises/strain/README.md index 5f3444b625..68b5315747 100644 --- a/exercises/strain/README.md +++ b/exercises/strain/README.md @@ -47,6 +47,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test strain_test.py` +- Python 3.3+: `pytest strain_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest strain_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/strain` directory. diff --git a/exercises/sublist/README.md b/exercises/sublist/README.md index 1f31c650bf..dad2e4ae88 100644 --- a/exercises/sublist/README.md +++ b/exercises/sublist/README.md @@ -31,6 +31,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test sublist_test.py` +- Python 3.3+: `pytest sublist_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest sublist_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/sublist` directory. diff --git a/exercises/sum-of-multiples/README.md b/exercises/sum-of-multiples/README.md index 53c898b9c8..314ef27404 100644 --- a/exercises/sum-of-multiples/README.md +++ b/exercises/sum-of-multiples/README.md @@ -22,6 +22,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test sum_of_multiples_test.py` +- Python 3.3+: `pytest sum_of_multiples_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest sum_of_multiples_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/sum-of-multiples` directory. diff --git a/exercises/tournament/README.md b/exercises/tournament/README.md index 4d4f907adc..c6d3e9cf3b 100644 --- a/exercises/tournament/README.md +++ b/exercises/tournament/README.md @@ -78,6 +78,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test tournament_test.py` +- Python 3.3+: `pytest tournament_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest tournament_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/tournament` directory. diff --git a/exercises/transpose/README.md b/exercises/transpose/README.md index c7d6e170f4..e23672ef78 100644 --- a/exercises/transpose/README.md +++ b/exercises/transpose/README.md @@ -72,6 +72,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test transpose_test.py` +- Python 3.3+: `pytest transpose_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest transpose_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/transpose` directory. diff --git a/exercises/tree-building/README.md b/exercises/tree-building/README.md index 249b1127e0..5ec7d0f7bf 100644 --- a/exercises/tree-building/README.md +++ b/exercises/tree-building/README.md @@ -40,6 +40,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test tree_building_test.py` +- Python 3.3+: `pytest tree_building_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest tree_building_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/tree-building` directory. diff --git a/exercises/triangle/README.md b/exercises/triangle/README.md index 1b0941d25e..d4e3781c12 100644 --- a/exercises/triangle/README.md +++ b/exercises/triangle/README.md @@ -36,6 +36,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test triangle_test.py` +- Python 3.3+: `pytest triangle_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest triangle_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/triangle` directory. diff --git a/exercises/trinary/README.md b/exercises/trinary/README.md index 91ce0c39bd..fa8e5cada7 100644 --- a/exercises/trinary/README.md +++ b/exercises/trinary/README.md @@ -35,6 +35,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test trinary_test.py` +- Python 3.3+: `pytest trinary_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest trinary_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/trinary` directory. diff --git a/exercises/twelve-days/README.md b/exercises/twelve-days/README.md index cee2b8793f..4e43f34ac8 100644 --- a/exercises/twelve-days/README.md +++ b/exercises/twelve-days/README.md @@ -42,6 +42,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test twelve_days_test.py` +- Python 3.3+: `pytest twelve_days_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest twelve_days_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/twelve-days` directory. diff --git a/exercises/two-bucket/README.md b/exercises/two-bucket/README.md index 3b413ef716..40bf437a56 100644 --- a/exercises/two-bucket/README.md +++ b/exercises/two-bucket/README.md @@ -43,6 +43,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test two_bucket_test.py` +- Python 3.3+: `pytest two_bucket_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest two_bucket_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/two-bucket` directory. diff --git a/exercises/two-fer/README.md b/exercises/two-fer/README.md index e697cc79d8..dea52012a7 100644 --- a/exercises/two-fer/README.md +++ b/exercises/two-fer/README.md @@ -26,6 +26,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test two_fer_test.py` +- Python 3.3+: `pytest two_fer_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest two_fer_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/two-fer` directory. diff --git a/exercises/variable-length-quantity/README.md b/exercises/variable-length-quantity/README.md index 455557f192..59b4e908c5 100644 --- a/exercises/variable-length-quantity/README.md +++ b/exercises/variable-length-quantity/README.md @@ -45,6 +45,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test variable_length_quantity_test.py` +- Python 3.3+: `pytest variable_length_quantity_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest variable_length_quantity_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/variable-length-quantity` directory. diff --git a/exercises/word-count/README.md b/exercises/word-count/README.md index c4f09df094..c3c68e576c 100644 --- a/exercises/word-count/README.md +++ b/exercises/word-count/README.md @@ -25,6 +25,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test word_count_test.py` +- Python 3.3+: `pytest word_count_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest word_count_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/word-count` directory. diff --git a/exercises/word-search/README.md b/exercises/word-search/README.md index a35864f6fa..c83f56e70c 100644 --- a/exercises/word-search/README.md +++ b/exercises/word-search/README.md @@ -40,6 +40,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test word_search_test.py` +- Python 3.3+: `pytest word_search_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest word_search_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/word-search` directory. diff --git a/exercises/wordy/README.md b/exercises/wordy/README.md index cd2b33f888..170ffb1c69 100644 --- a/exercises/wordy/README.md +++ b/exercises/wordy/README.md @@ -65,6 +65,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test wordy_test.py` +- Python 3.3+: `pytest wordy_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest wordy_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/wordy` directory. diff --git a/exercises/zebra-puzzle/README.md b/exercises/zebra-puzzle/README.md index 999d096fcd..d2ed54f8db 100644 --- a/exercises/zebra-puzzle/README.md +++ b/exercises/zebra-puzzle/README.md @@ -39,6 +39,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test zebra_puzzle_test.py` +- Python 3.3+: `pytest zebra_puzzle_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest zebra_puzzle_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/zebra-puzzle` directory. diff --git a/exercises/zipper/README.md b/exercises/zipper/README.md index a96ebf72b3..876b60cbe7 100644 --- a/exercises/zipper/README.md +++ b/exercises/zipper/README.md @@ -41,6 +41,23 @@ To raise a message with an exception, just write it as an argument to the except raise Exception("Meaningful message indicating the source of the error") ``` +## Running the tests + +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): + +- Python 2.7: `py.test zipper_test.py` +- Python 3.3+: `pytest zipper_test.py` + +Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version): +`python -m pytest zipper_test.py` + +### Common pytest options +- -v : enable verbose output +- -x : stop running tests on first failure +- --ff : run failures from previous test before running other test cases + +For other options, see `python -m pytest -h` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/zipper` directory.