From 21709b57c3590a7a3430a8f7f633349158b58e3c Mon Sep 17 00:00:00 2001 From: Corey McCandless Date: Thu, 15 Feb 2018 10:16:09 -0600 Subject: [PATCH 1/4] add "Running the tests" section to README template --- config/exercise_readme.go.tmpl | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/config/exercise_readme.go.tmpl b/config/exercise_readme.go.tmpl index ab739fb652..01707f7a7b 100644 --- a/config/exercise_readme.go.tmpl +++ b/config/exercise_readme.go.tmpl @@ -18,6 +18,19 @@ 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 command `python -m pytest {{ .Spec.SnakeCaseName }}_test.py` +(`py.test {{ .Spec.SnakeCaseName }}_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest {{ .Spec.SnakeCaseName }}_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest {{ .Spec.SnakeCaseName }}_test.py -v +``` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/{{ .Spec.Slug }}` directory. From 5e7fe8a78a5edf7a834325d24af54d2a0f4c4528 Mon Sep 17 00:00:00 2001 From: Corey McCandless Date: Thu, 15 Feb 2018 10:16:51 -0600 Subject: [PATCH 2/4] regenerate README files with new template --- exercises/accumulate/README.md | 13 +++++++++++++ exercises/acronym/README.md | 13 +++++++++++++ exercises/all-your-base/README.md | 13 +++++++++++++ exercises/allergies/README.md | 13 +++++++++++++ exercises/alphametics/README.md | 13 +++++++++++++ exercises/anagram/README.md | 13 +++++++++++++ exercises/armstrong-numbers/README.md | 13 +++++++++++++ exercises/atbash-cipher/README.md | 13 +++++++++++++ exercises/beer-song/README.md | 13 +++++++++++++ exercises/binary-search-tree/README.md | 13 +++++++++++++ exercises/binary-search/README.md | 13 +++++++++++++ exercises/binary/README.md | 13 +++++++++++++ exercises/bob/README.md | 13 +++++++++++++ exercises/book-store/README.md | 13 +++++++++++++ exercises/bowling/README.md | 13 +++++++++++++ exercises/bracket-push/README.md | 13 +++++++++++++ exercises/change/README.md | 13 +++++++++++++ exercises/circular-buffer/README.md | 13 +++++++++++++ exercises/clock/README.md | 13 +++++++++++++ exercises/collatz-conjecture/README.md | 13 +++++++++++++ exercises/complex-numbers/README.md | 13 +++++++++++++ exercises/connect/README.md | 13 +++++++++++++ exercises/crypto-square/README.md | 13 +++++++++++++ exercises/custom-set/README.md | 13 +++++++++++++ exercises/diamond/README.md | 13 +++++++++++++ exercises/difference-of-squares/README.md | 13 +++++++++++++ exercises/diffie-hellman/README.md | 13 +++++++++++++ exercises/dominoes/README.md | 13 +++++++++++++ exercises/dot-dsl/README.md | 13 +++++++++++++ exercises/error-handling/README.md | 13 +++++++++++++ exercises/etl/README.md | 13 +++++++++++++ exercises/flatten-array/README.md | 13 +++++++++++++ exercises/food-chain/README.md | 13 +++++++++++++ exercises/forth/README.md | 13 +++++++++++++ exercises/gigasecond/README.md | 13 +++++++++++++ exercises/go-counting/README.md | 13 +++++++++++++ exercises/grade-school/README.md | 13 +++++++++++++ exercises/grains/README.md | 13 +++++++++++++ exercises/grep/README.md | 13 +++++++++++++ exercises/hamming/README.md | 13 +++++++++++++ exercises/hello-world/README.md | 13 +++++++++++++ exercises/hexadecimal/README.md | 13 +++++++++++++ exercises/house/README.md | 13 +++++++++++++ exercises/isbn-verifier/README.md | 13 +++++++++++++ exercises/isogram/README.md | 13 +++++++++++++ exercises/kindergarten-garden/README.md | 13 +++++++++++++ exercises/largest-series-product/README.md | 13 +++++++++++++ exercises/leap/README.md | 13 +++++++++++++ exercises/linked-list/README.md | 13 +++++++++++++ exercises/list-ops/README.md | 13 +++++++++++++ exercises/luhn/README.md | 13 +++++++++++++ exercises/markdown/README.md | 13 +++++++++++++ exercises/matrix/README.md | 13 +++++++++++++ exercises/meetup/README.md | 13 +++++++++++++ exercises/minesweeper/README.md | 13 +++++++++++++ exercises/nth-prime/README.md | 13 +++++++++++++ exercises/nucleotide-count/README.md | 13 +++++++++++++ exercises/ocr-numbers/README.md | 13 +++++++++++++ exercises/octal/README.md | 13 +++++++++++++ exercises/palindrome-products/README.md | 13 +++++++++++++ exercises/pangram/README.md | 13 +++++++++++++ exercises/parallel-letter-frequency/README.md | 13 +++++++++++++ exercises/pascals-triangle/README.md | 13 +++++++++++++ exercises/perfect-numbers/README.md | 13 +++++++++++++ exercises/phone-number/README.md | 13 +++++++++++++ exercises/pig-latin/README.md | 13 +++++++++++++ exercises/point-mutations/README.md | 13 +++++++++++++ exercises/poker/README.md | 13 +++++++++++++ exercises/pov/README.md | 13 +++++++++++++ exercises/prime-factors/README.md | 13 +++++++++++++ exercises/protein-translation/README.md | 13 +++++++++++++ exercises/proverb/README.md | 13 +++++++++++++ exercises/pythagorean-triplet/README.md | 13 +++++++++++++ exercises/queen-attack/README.md | 13 +++++++++++++ exercises/rail-fence-cipher/README.md | 13 +++++++++++++ exercises/raindrops/README.md | 13 +++++++++++++ exercises/react/README.md | 13 +++++++++++++ exercises/rectangles/README.md | 13 +++++++++++++ exercises/reverse-string/README.md | 13 +++++++++++++ exercises/rna-transcription/README.md | 13 +++++++++++++ exercises/robot-name/README.md | 13 +++++++++++++ exercises/robot-simulator/README.md | 13 +++++++++++++ exercises/roman-numerals/README.md | 13 +++++++++++++ exercises/rotational-cipher/README.md | 13 +++++++++++++ exercises/run-length-encoding/README.md | 13 +++++++++++++ exercises/saddle-points/README.md | 13 +++++++++++++ exercises/say/README.md | 13 +++++++++++++ exercises/scale-generator/README.md | 13 +++++++++++++ exercises/scrabble-score/README.md | 13 +++++++++++++ exercises/secret-handshake/README.md | 13 +++++++++++++ exercises/series/README.md | 13 +++++++++++++ exercises/sieve/README.md | 13 +++++++++++++ exercises/simple-cipher/README.md | 13 +++++++++++++ exercises/simple-linked-list/README.md | 13 +++++++++++++ exercises/space-age/README.md | 13 +++++++++++++ exercises/spiral-matrix/README.md | 13 +++++++++++++ exercises/strain/README.md | 13 +++++++++++++ exercises/sublist/README.md | 13 +++++++++++++ exercises/sum-of-multiples/README.md | 13 +++++++++++++ exercises/tournament/README.md | 13 +++++++++++++ exercises/transpose/README.md | 13 +++++++++++++ exercises/tree-building/README.md | 13 +++++++++++++ exercises/triangle/README.md | 13 +++++++++++++ exercises/trinary/README.md | 13 +++++++++++++ exercises/twelve-days/README.md | 13 +++++++++++++ exercises/two-bucket/README.md | 13 +++++++++++++ exercises/two-fer/README.md | 13 +++++++++++++ exercises/variable-length-quantity/README.md | 13 +++++++++++++ exercises/word-count/README.md | 13 +++++++++++++ exercises/word-search/README.md | 13 +++++++++++++ exercises/wordy/README.md | 13 +++++++++++++ exercises/zebra-puzzle/README.md | 13 +++++++++++++ exercises/zipper/README.md | 13 +++++++++++++ 113 files changed, 1469 insertions(+) diff --git a/exercises/accumulate/README.md b/exercises/accumulate/README.md index 1acacb0bdb..c136e6d8a0 100644 --- a/exercises/accumulate/README.md +++ b/exercises/accumulate/README.md @@ -39,6 +39,19 @@ 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 command `python -m pytest accumulate_test.py` +(`py.test accumulate_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest accumulate_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest accumulate_test.py -v +``` + ## 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..7a7ed48851 100644 --- a/exercises/acronym/README.md +++ b/exercises/acronym/README.md @@ -21,6 +21,19 @@ 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 command `python -m pytest acronym_test.py` +(`py.test acronym_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest acronym_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest acronym_test.py -v +``` + ## 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..746507c4e8 100644 --- a/exercises/all-your-base/README.md +++ b/exercises/all-your-base/README.md @@ -45,6 +45,19 @@ 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 command `python -m pytest all_your_base_test.py` +(`py.test all_your_base_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest all_your_base_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest all_your_base_test.py -v +``` + ## 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..6ef88dad1b 100644 --- a/exercises/allergies/README.md +++ b/exercises/allergies/README.md @@ -43,6 +43,19 @@ 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 command `python -m pytest allergies_test.py` +(`py.test allergies_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest allergies_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest allergies_test.py -v +``` + ## 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..3117bc5954 100644 --- a/exercises/alphametics/README.md +++ b/exercises/alphametics/README.md @@ -45,6 +45,19 @@ 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 command `python -m pytest alphametics_test.py` +(`py.test alphametics_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest alphametics_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest alphametics_test.py -v +``` + ## 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..514774c303 100644 --- a/exercises/anagram/README.md +++ b/exercises/anagram/README.md @@ -20,6 +20,19 @@ 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 command `python -m pytest anagram_test.py` +(`py.test anagram_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest anagram_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest anagram_test.py -v +``` + ## 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..5336fa3109 100644 --- a/exercises/armstrong-numbers/README.md +++ b/exercises/armstrong-numbers/README.md @@ -25,6 +25,19 @@ 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 command `python -m pytest armstrong_numbers_test.py` +(`py.test armstrong_numbers_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest armstrong_numbers_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest armstrong_numbers_test.py -v +``` + ## 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..bced6b88b2 100644 --- a/exercises/atbash-cipher/README.md +++ b/exercises/atbash-cipher/README.md @@ -42,6 +42,19 @@ 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 command `python -m pytest atbash_cipher_test.py` +(`py.test atbash_cipher_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest atbash_cipher_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest atbash_cipher_test.py -v +``` + ## 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..f66738fe8d 100644 --- a/exercises/beer-song/README.md +++ b/exercises/beer-song/README.md @@ -334,6 +334,19 @@ 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 command `python -m pytest beer_song_test.py` +(`py.test beer_song_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest beer_song_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest beer_song_test.py -v +``` + ## 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..d787c4760e 100644 --- a/exercises/binary-search-tree/README.md +++ b/exercises/binary-search-tree/README.md @@ -67,6 +67,19 @@ 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 command `python -m pytest binary_search_tree_test.py` +(`py.test binary_search_tree_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest binary_search_tree_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest binary_search_tree_test.py -v +``` + ## 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..ebed196f2d 100644 --- a/exercises/binary-search/README.md +++ b/exercises/binary-search/README.md @@ -48,6 +48,19 @@ 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 command `python -m pytest binary_search_test.py` +(`py.test binary_search_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest binary_search_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest binary_search_test.py -v +``` + ## 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..0b40da1d04 100644 --- a/exercises/binary/README.md +++ b/exercises/binary/README.md @@ -44,6 +44,19 @@ 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 command `python -m pytest binary_test.py` +(`py.test binary_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest binary_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest binary_test.py -v +``` + ## 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..b719078340 100644 --- a/exercises/bob/README.md +++ b/exercises/bob/README.md @@ -27,6 +27,19 @@ 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 command `python -m pytest bob_test.py` +(`py.test bob_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest bob_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest bob_test.py -v +``` + ## 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..10fc4125c8 100644 --- a/exercises/book-store/README.md +++ b/exercises/book-store/README.md @@ -81,6 +81,19 @@ 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 command `python -m pytest book_store_test.py` +(`py.test book_store_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest book_store_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest book_store_test.py -v +``` + ## 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..e63ed26a81 100644 --- a/exercises/bowling/README.md +++ b/exercises/bowling/README.md @@ -74,6 +74,19 @@ 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 command `python -m pytest bowling_test.py` +(`py.test bowling_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest bowling_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest bowling_test.py -v +``` + ## 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..6276cb0c31 100644 --- a/exercises/bracket-push/README.md +++ b/exercises/bracket-push/README.md @@ -17,6 +17,19 @@ 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 command `python -m pytest bracket_push_test.py` +(`py.test bracket_push_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest bracket_push_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest bracket_push_test.py -v +``` + ## 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..de5917ec9c 100644 --- a/exercises/change/README.md +++ b/exercises/change/README.md @@ -30,6 +30,19 @@ 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 command `python -m pytest change_test.py` +(`py.test change_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest change_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest change_test.py -v +``` + ## 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..54966a4cd6 100644 --- a/exercises/circular-buffer/README.md +++ b/exercises/circular-buffer/README.md @@ -64,6 +64,19 @@ 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 command `python -m pytest circular_buffer_test.py` +(`py.test circular_buffer_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest circular_buffer_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest circular_buffer_test.py -v +``` + ## 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..2cdcd267b6 100644 --- a/exercises/clock/README.md +++ b/exercises/clock/README.md @@ -20,6 +20,19 @@ 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 command `python -m pytest clock_test.py` +(`py.test clock_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest clock_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest clock_test.py -v +``` + ## 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..ac2462b4d2 100644 --- a/exercises/collatz-conjecture/README.md +++ b/exercises/collatz-conjecture/README.md @@ -45,6 +45,19 @@ 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 command `python -m pytest collatz_conjecture_test.py` +(`py.test collatz_conjecture_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest collatz_conjecture_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest collatz_conjecture_test.py -v +``` + ## 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..13d8008190 100644 --- a/exercises/complex-numbers/README.md +++ b/exercises/complex-numbers/README.md @@ -50,6 +50,19 @@ 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 command `python -m pytest complex_numbers_test.py` +(`py.test complex_numbers_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest complex_numbers_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest complex_numbers_test.py -v +``` + ## 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..eabe111b70 100644 --- a/exercises/connect/README.md +++ b/exercises/connect/README.md @@ -44,6 +44,19 @@ 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 command `python -m pytest connect_test.py` +(`py.test connect_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest connect_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest connect_test.py -v +``` + ## 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..50a2910e9f 100644 --- a/exercises/crypto-square/README.md +++ b/exercises/crypto-square/README.md @@ -83,6 +83,19 @@ 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 command `python -m pytest crypto_square_test.py` +(`py.test crypto_square_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest crypto_square_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest crypto_square_test.py -v +``` + ## 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..1c38bd1f02 100644 --- a/exercises/custom-set/README.md +++ b/exercises/custom-set/README.md @@ -21,6 +21,19 @@ 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 command `python -m pytest custom_set_test.py` +(`py.test custom_set_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest custom_set_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest custom_set_test.py -v +``` + ## 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..d12dfaae25 100644 --- a/exercises/diamond/README.md +++ b/exercises/diamond/README.md @@ -66,6 +66,19 @@ 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 command `python -m pytest diamond_test.py` +(`py.test diamond_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest diamond_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest diamond_test.py -v +``` + ## 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..199509d0ef 100644 --- a/exercises/difference-of-squares/README.md +++ b/exercises/difference-of-squares/README.md @@ -26,6 +26,19 @@ 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 command `python -m pytest difference_of_squares_test.py` +(`py.test difference_of_squares_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest difference_of_squares_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest difference_of_squares_test.py -v +``` + ## 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..95d740ad2e 100644 --- a/exercises/diffie-hellman/README.md +++ b/exercises/diffie-hellman/README.md @@ -68,6 +68,19 @@ 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 command `python -m pytest diffie_hellman_test.py` +(`py.test diffie_hellman_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest diffie_hellman_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest diffie_hellman_test.py -v +``` + ## 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..62c968439d 100644 --- a/exercises/dominoes/README.md +++ b/exercises/dominoes/README.md @@ -28,6 +28,19 @@ 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 command `python -m pytest dominoes_test.py` +(`py.test dominoes_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest dominoes_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest dominoes_test.py -v +``` + ## 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..90798c0bbb 100644 --- a/exercises/dot-dsl/README.md +++ b/exercises/dot-dsl/README.md @@ -54,6 +54,19 @@ 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 command `python -m pytest dot_dsl_test.py` +(`py.test dot_dsl_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest dot_dsl_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest dot_dsl_test.py -v +``` + ## 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..45143b814c 100644 --- a/exercises/error-handling/README.md +++ b/exercises/error-handling/README.md @@ -33,6 +33,19 @@ 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 command `python -m pytest error_handling_test.py` +(`py.test error_handling_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest error_handling_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest error_handling_test.py -v +``` + ## 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..e5fb38bb73 100644 --- a/exercises/etl/README.md +++ b/exercises/etl/README.md @@ -60,6 +60,19 @@ 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 command `python -m pytest etl_test.py` +(`py.test etl_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest etl_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest etl_test.py -v +``` + ## 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..de0d542487 100644 --- a/exercises/flatten-array/README.md +++ b/exercises/flatten-array/README.md @@ -24,6 +24,19 @@ 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 command `python -m pytest flatten_array_test.py` +(`py.test flatten_array_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest flatten_array_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest flatten_array_test.py -v +``` + ## 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..a4c0c94c9e 100644 --- a/exercises/food-chain/README.md +++ b/exercises/food-chain/README.md @@ -77,6 +77,19 @@ 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 command `python -m pytest food_chain_test.py` +(`py.test food_chain_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest food_chain_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest food_chain_test.py -v +``` + ## 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..f56f388db4 100644 --- a/exercises/forth/README.md +++ b/exercises/forth/README.md @@ -39,6 +39,19 @@ 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 command `python -m pytest forth_test.py` +(`py.test forth_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest forth_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest forth_test.py -v +``` + ## 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..289e7ed563 100644 --- a/exercises/gigasecond/README.md +++ b/exercises/gigasecond/README.md @@ -18,6 +18,19 @@ 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 command `python -m pytest gigasecond_test.py` +(`py.test gigasecond_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest gigasecond_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest gigasecond_test.py -v +``` + ## 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..d503f50217 100644 --- a/exercises/go-counting/README.md +++ b/exercises/go-counting/README.md @@ -47,6 +47,19 @@ 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 command `python -m pytest go_counting_test.py` +(`py.test go_counting_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest go_counting_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest go_counting_test.py -v +``` + ## 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..1a25cf0e83 100644 --- a/exercises/grade-school/README.md +++ b/exercises/grade-school/README.md @@ -48,6 +48,19 @@ 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 command `python -m pytest grade_school_test.py` +(`py.test grade_school_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest grade_school_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest grade_school_test.py -v +``` + ## 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..ace408830a 100644 --- a/exercises/grains/README.md +++ b/exercises/grains/README.md @@ -40,6 +40,19 @@ 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 command `python -m pytest grains_test.py` +(`py.test grains_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest grains_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest grains_test.py -v +``` + ## 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..963b3515df 100644 --- a/exercises/grep/README.md +++ b/exercises/grep/README.md @@ -78,6 +78,19 @@ 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 command `python -m pytest grep_test.py` +(`py.test grep_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest grep_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest grep_test.py -v +``` + ## 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..8874e58322 100644 --- a/exercises/hamming/README.md +++ b/exercises/hamming/README.md @@ -49,6 +49,19 @@ 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 command `python -m pytest hamming_test.py` +(`py.test hamming_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest hamming_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest hamming_test.py -v +``` + ## 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..1f0c7059ea 100644 --- a/exercises/hello-world/README.md +++ b/exercises/hello-world/README.md @@ -28,6 +28,19 @@ 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 command `python -m pytest hello_world_test.py` +(`py.test hello_world_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest hello_world_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest hello_world_test.py -v +``` + ## 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..e15baa41e8 100644 --- a/exercises/hexadecimal/README.md +++ b/exercises/hexadecimal/README.md @@ -21,6 +21,19 @@ 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 command `python -m pytest hexadecimal_test.py` +(`py.test hexadecimal_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest hexadecimal_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest hexadecimal_test.py -v +``` + ## 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..9bc98179a7 100644 --- a/exercises/house/README.md +++ b/exercises/house/README.md @@ -119,6 +119,19 @@ 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 command `python -m pytest house_test.py` +(`py.test house_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest house_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest house_test.py -v +``` + ## 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..d58e9f83c5 100644 --- a/exercises/isbn-verifier/README.md +++ b/exercises/isbn-verifier/README.md @@ -54,6 +54,19 @@ 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 command `python -m pytest isbn_verifier_test.py` +(`py.test isbn_verifier_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest isbn_verifier_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest isbn_verifier_test.py -v +``` + ## 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..9f5533d55f 100644 --- a/exercises/isogram/README.md +++ b/exercises/isogram/README.md @@ -27,6 +27,19 @@ 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 command `python -m pytest isogram_test.py` +(`py.test isogram_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest isogram_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest isogram_test.py -v +``` + ## 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..4bef1446d4 100644 --- a/exercises/kindergarten-garden/README.md +++ b/exercises/kindergarten-garden/README.md @@ -73,6 +73,19 @@ 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 command `python -m pytest kindergarten_garden_test.py` +(`py.test kindergarten_garden_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest kindergarten_garden_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest kindergarten_garden_test.py -v +``` + ## 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..e0c7978c60 100644 --- a/exercises/largest-series-product/README.md +++ b/exercises/largest-series-product/README.md @@ -27,6 +27,19 @@ 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 command `python -m pytest largest_series_product_test.py` +(`py.test largest_series_product_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest largest_series_product_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest largest_series_product_test.py -v +``` + ## 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..0c6674fe9d 100644 --- a/exercises/leap/README.md +++ b/exercises/leap/README.md @@ -40,6 +40,19 @@ 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 command `python -m pytest leap_test.py` +(`py.test leap_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest leap_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest leap_test.py -v +``` + ## 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..bff3d0f636 100644 --- a/exercises/linked-list/README.md +++ b/exercises/linked-list/README.md @@ -41,6 +41,19 @@ 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 command `python -m pytest linked_list_test.py` +(`py.test linked_list_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest linked_list_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest linked_list_test.py -v +``` + ## 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..84c2f271d8 100644 --- a/exercises/list-ops/README.md +++ b/exercises/list-ops/README.md @@ -20,6 +20,19 @@ 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 command `python -m pytest list_ops_test.py` +(`py.test list_ops_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest list_ops_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest list_ops_test.py -v +``` + ## 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..e199db8dd7 100644 --- a/exercises/luhn/README.md +++ b/exercises/luhn/README.md @@ -78,6 +78,19 @@ 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 command `python -m pytest luhn_test.py` +(`py.test luhn_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest luhn_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest luhn_test.py -v +``` + ## 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..22154c897c 100644 --- a/exercises/markdown/README.md +++ b/exercises/markdown/README.md @@ -28,6 +28,19 @@ 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 command `python -m pytest markdown_test.py` +(`py.test markdown_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest markdown_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest markdown_test.py -v +``` + ## 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..0a8151d126 100644 --- a/exercises/matrix/README.md +++ b/exercises/matrix/README.md @@ -54,6 +54,19 @@ 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 command `python -m pytest matrix_test.py` +(`py.test matrix_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest matrix_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest matrix_test.py -v +``` + ## 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..7a718f0bb8 100644 --- a/exercises/meetup/README.md +++ b/exercises/meetup/README.md @@ -40,6 +40,19 @@ 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 command `python -m pytest meetup_test.py` +(`py.test meetup_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest meetup_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest meetup_test.py -v +``` + ## 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..2cac314e81 100644 --- a/exercises/minesweeper/README.md +++ b/exercises/minesweeper/README.md @@ -40,6 +40,19 @@ 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 command `python -m pytest minesweeper_test.py` +(`py.test minesweeper_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest minesweeper_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest minesweeper_test.py -v +``` + ## 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..f26a3220f8 100644 --- a/exercises/nth-prime/README.md +++ b/exercises/nth-prime/README.md @@ -22,6 +22,19 @@ 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 command `python -m pytest nth_prime_test.py` +(`py.test nth_prime_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest nth_prime_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest nth_prime_test.py -v +``` + ## 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..7a097fca17 100644 --- a/exercises/nucleotide-count/README.md +++ b/exercises/nucleotide-count/README.md @@ -26,6 +26,19 @@ 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 command `python -m pytest nucleotide_count_test.py` +(`py.test nucleotide_count_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest nucleotide_count_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest nucleotide_count_test.py -v +``` + ## 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..77e048a7ce 100644 --- a/exercises/ocr-numbers/README.md +++ b/exercises/ocr-numbers/README.md @@ -92,6 +92,19 @@ 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 command `python -m pytest ocr_numbers_test.py` +(`py.test ocr_numbers_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest ocr_numbers_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest ocr_numbers_test.py -v +``` + ## 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..1665a79cf4 100644 --- a/exercises/octal/README.md +++ b/exercises/octal/README.md @@ -60,6 +60,19 @@ 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 command `python -m pytest octal_test.py` +(`py.test octal_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest octal_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest octal_test.py -v +``` + ## 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..e071032f73 100644 --- a/exercises/palindrome-products/README.md +++ b/exercises/palindrome-products/README.md @@ -46,6 +46,19 @@ 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 command `python -m pytest palindrome_products_test.py` +(`py.test palindrome_products_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest palindrome_products_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest palindrome_products_test.py -v +``` + ## 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..bc9e123a05 100644 --- a/exercises/pangram/README.md +++ b/exercises/pangram/README.md @@ -22,6 +22,19 @@ 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 command `python -m pytest pangram_test.py` +(`py.test pangram_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest pangram_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest pangram_test.py -v +``` + ## 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..a6f8d0673d 100644 --- a/exercises/parallel-letter-frequency/README.md +++ b/exercises/parallel-letter-frequency/README.md @@ -21,6 +21,19 @@ 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 command `python -m pytest parallel_letter_frequency_test.py` +(`py.test parallel_letter_frequency_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest parallel_letter_frequency_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest parallel_letter_frequency_test.py -v +``` + ## 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..6544f7e4ec 100644 --- a/exercises/pascals-triangle/README.md +++ b/exercises/pascals-triangle/README.md @@ -28,6 +28,19 @@ 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 command `python -m pytest pascals_triangle_test.py` +(`py.test pascals_triangle_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest pascals_triangle_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest pascals_triangle_test.py -v +``` + ## 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..18dbcefc59 100644 --- a/exercises/perfect-numbers/README.md +++ b/exercises/perfect-numbers/README.md @@ -31,6 +31,19 @@ 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 command `python -m pytest perfect_numbers_test.py` +(`py.test perfect_numbers_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest perfect_numbers_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest perfect_numbers_test.py -v +``` + ## 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..2285b6dcb5 100644 --- a/exercises/phone-number/README.md +++ b/exercises/phone-number/README.md @@ -42,6 +42,19 @@ 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 command `python -m pytest phone_number_test.py` +(`py.test phone_number_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest phone_number_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest phone_number_test.py -v +``` + ## 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 4245ec45ac..60251ccb09 100644 --- a/exercises/pig-latin/README.md +++ b/exercises/pig-latin/README.md @@ -31,6 +31,19 @@ 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 command `python -m pytest pig_latin_test.py` +(`py.test pig_latin_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest pig_latin_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest pig_latin_test.py -v +``` + ## 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..c7df9cd852 100644 --- a/exercises/point-mutations/README.md +++ b/exercises/point-mutations/README.md @@ -48,6 +48,19 @@ 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 command `python -m pytest point_mutations_test.py` +(`py.test point_mutations_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest point_mutations_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest point_mutations_test.py -v +``` + ## 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..4ee6886f4d 100644 --- a/exercises/poker/README.md +++ b/exercises/poker/README.md @@ -19,6 +19,19 @@ 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 command `python -m pytest poker_test.py` +(`py.test poker_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest poker_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest poker_test.py -v +``` + ## 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..264daf6b3a 100644 --- a/exercises/pov/README.md +++ b/exercises/pov/README.md @@ -51,6 +51,19 @@ 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 command `python -m pytest pov_test.py` +(`py.test pov_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest pov_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest pov_test.py -v +``` + ## 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..a806148566 100644 --- a/exercises/prime-factors/README.md +++ b/exercises/prime-factors/README.md @@ -43,6 +43,19 @@ 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 command `python -m pytest prime_factors_test.py` +(`py.test prime_factors_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest prime_factors_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest prime_factors_test.py -v +``` + ## 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..95e28cd099 100644 --- a/exercises/protein-translation/README.md +++ b/exercises/protein-translation/README.md @@ -55,6 +55,19 @@ 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 command `python -m pytest protein_translation_test.py` +(`py.test protein_translation_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest protein_translation_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest protein_translation_test.py -v +``` + ## 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..7797d7b186 100644 --- a/exercises/proverb/README.md +++ b/exercises/proverb/README.md @@ -30,6 +30,19 @@ 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 command `python -m pytest proverb_test.py` +(`py.test proverb_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest proverb_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest proverb_test.py -v +``` + ## 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..11c569b1a1 100644 --- a/exercises/pythagorean-triplet/README.md +++ b/exercises/pythagorean-triplet/README.md @@ -31,6 +31,19 @@ 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 command `python -m pytest pythagorean_triplet_test.py` +(`py.test pythagorean_triplet_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest pythagorean_triplet_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest pythagorean_triplet_test.py -v +``` + ## 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..2d2901ef17 100644 --- a/exercises/queen-attack/README.md +++ b/exercises/queen-attack/README.md @@ -40,6 +40,19 @@ 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 command `python -m pytest queen_attack_test.py` +(`py.test queen_attack_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest queen_attack_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest queen_attack_test.py -v +``` + ## 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..9004c272a9 100644 --- a/exercises/rail-fence-cipher/README.md +++ b/exercises/rail-fence-cipher/README.md @@ -72,6 +72,19 @@ 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 command `python -m pytest rail_fence_cipher_test.py` +(`py.test rail_fence_cipher_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest rail_fence_cipher_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest rail_fence_cipher_test.py -v +``` + ## 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..d34fad7b83 100644 --- a/exercises/raindrops/README.md +++ b/exercises/raindrops/README.md @@ -31,6 +31,19 @@ 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 command `python -m pytest raindrops_test.py` +(`py.test raindrops_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest raindrops_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest raindrops_test.py -v +``` + ## 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..b33c59e8dc 100644 --- a/exercises/react/README.md +++ b/exercises/react/README.md @@ -29,6 +29,19 @@ 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 command `python -m pytest react_test.py` +(`py.test react_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest react_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest react_test.py -v +``` + ## 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..e2bdafa450 100644 --- a/exercises/rectangles/README.md +++ b/exercises/rectangles/README.md @@ -77,6 +77,19 @@ 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 command `python -m pytest rectangles_test.py` +(`py.test rectangles_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest rectangles_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest rectangles_test.py -v +``` + ## 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..1bfd42e882 100644 --- a/exercises/reverse-string/README.md +++ b/exercises/reverse-string/README.md @@ -20,6 +20,19 @@ 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 command `python -m pytest reverse_string_test.py` +(`py.test reverse_string_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest reverse_string_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest reverse_string_test.py -v +``` + ## 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..922ed7aeae 100644 --- a/exercises/rna-transcription/README.md +++ b/exercises/rna-transcription/README.md @@ -35,6 +35,19 @@ 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 command `python -m pytest rna_transcription_test.py` +(`py.test rna_transcription_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest rna_transcription_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest rna_transcription_test.py -v +``` + ## 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..c08ce44b51 100644 --- a/exercises/robot-name/README.md +++ b/exercises/robot-name/README.md @@ -29,6 +29,19 @@ 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 command `python -m pytest robot_name_test.py` +(`py.test robot_name_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest robot_name_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest robot_name_test.py -v +``` + ## 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..15684087a7 100644 --- a/exercises/robot-simulator/README.md +++ b/exercises/robot-simulator/README.md @@ -41,6 +41,19 @@ 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 command `python -m pytest robot_simulator_test.py` +(`py.test robot_simulator_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest robot_simulator_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest robot_simulator_test.py -v +``` + ## 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..fbd76d681f 100644 --- a/exercises/roman-numerals/README.md +++ b/exercises/roman-numerals/README.md @@ -56,6 +56,19 @@ 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 command `python -m pytest roman_numerals_test.py` +(`py.test roman_numerals_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest roman_numerals_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest roman_numerals_test.py -v +``` + ## 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..b5b14caee2 100644 --- a/exercises/rotational-cipher/README.md +++ b/exercises/rotational-cipher/README.md @@ -44,6 +44,19 @@ 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 command `python -m pytest rotational_cipher_test.py` +(`py.test rotational_cipher_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest rotational_cipher_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest rotational_cipher_test.py -v +``` + ## 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..6f7f4cc684 100644 --- a/exercises/run-length-encoding/README.md +++ b/exercises/run-length-encoding/README.md @@ -37,6 +37,19 @@ 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 command `python -m pytest run_length_encoding_test.py` +(`py.test run_length_encoding_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest run_length_encoding_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest run_length_encoding_test.py -v +``` + ## 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..fc35f1b058 100644 --- a/exercises/saddle-points/README.md +++ b/exercises/saddle-points/README.md @@ -40,6 +40,19 @@ 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 command `python -m pytest saddle_points_test.py` +(`py.test saddle_points_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest saddle_points_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest saddle_points_test.py -v +``` + ## 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..923991139e 100644 --- a/exercises/say/README.md +++ b/exercises/say/README.md @@ -76,6 +76,19 @@ 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 command `python -m pytest say_test.py` +(`py.test say_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest say_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest say_test.py -v +``` + ## 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..6f09191745 100644 --- a/exercises/scale-generator/README.md +++ b/exercises/scale-generator/README.md @@ -69,6 +69,19 @@ 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 command `python -m pytest scale_generator_test.py` +(`py.test scale_generator_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest scale_generator_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest scale_generator_test.py -v +``` + ## 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..7886f2752b 100644 --- a/exercises/scrabble-score/README.md +++ b/exercises/scrabble-score/README.md @@ -53,6 +53,19 @@ 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 command `python -m pytest scrabble_score_test.py` +(`py.test scrabble_score_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest scrabble_score_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest scrabble_score_test.py -v +``` + ## 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..d7edb5bf04 100644 --- a/exercises/secret-handshake/README.md +++ b/exercises/secret-handshake/README.md @@ -42,6 +42,19 @@ 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 command `python -m pytest secret_handshake_test.py` +(`py.test secret_handshake_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest secret_handshake_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest secret_handshake_test.py -v +``` + ## 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..5b425a0551 100644 --- a/exercises/series/README.md +++ b/exercises/series/README.md @@ -34,6 +34,19 @@ 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 command `python -m pytest series_test.py` +(`py.test series_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest series_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest series_test.py -v +``` + ## 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..9ad538eec1 100644 --- a/exercises/sieve/README.md +++ b/exercises/sieve/README.md @@ -41,6 +41,19 @@ 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 command `python -m pytest sieve_test.py` +(`py.test sieve_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest sieve_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest sieve_test.py -v +``` + ## 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..ada5d5a4c8 100644 --- a/exercises/simple-cipher/README.md +++ b/exercises/simple-cipher/README.md @@ -113,6 +113,19 @@ 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 command `python -m pytest simple_cipher_test.py` +(`py.test simple_cipher_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest simple_cipher_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest simple_cipher_test.py -v +``` + ## 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..e3fd10270a 100644 --- a/exercises/simple-linked-list/README.md +++ b/exercises/simple-linked-list/README.md @@ -47,6 +47,19 @@ 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 command `python -m pytest simple_linked_list_test.py` +(`py.test simple_linked_list_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest simple_linked_list_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest simple_linked_list_test.py -v +``` + ## 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..011bbf78c5 100644 --- a/exercises/space-age/README.md +++ b/exercises/space-age/README.md @@ -31,6 +31,19 @@ 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 command `python -m pytest space_age_test.py` +(`py.test space_age_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest space_age_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest space_age_test.py -v +``` + ## 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..e740395d68 100644 --- a/exercises/spiral-matrix/README.md +++ b/exercises/spiral-matrix/README.md @@ -37,6 +37,19 @@ 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 command `python -m pytest spiral_matrix_test.py` +(`py.test spiral_matrix_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest spiral_matrix_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest spiral_matrix_test.py -v +``` + ## 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..1428592313 100644 --- a/exercises/strain/README.md +++ b/exercises/strain/README.md @@ -47,6 +47,19 @@ 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 command `python -m pytest strain_test.py` +(`py.test strain_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest strain_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest strain_test.py -v +``` + ## 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..99cb54b418 100644 --- a/exercises/sublist/README.md +++ b/exercises/sublist/README.md @@ -31,6 +31,19 @@ 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 command `python -m pytest sublist_test.py` +(`py.test sublist_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest sublist_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest sublist_test.py -v +``` + ## 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..367649ae52 100644 --- a/exercises/sum-of-multiples/README.md +++ b/exercises/sum-of-multiples/README.md @@ -22,6 +22,19 @@ 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 command `python -m pytest sum_of_multiples_test.py` +(`py.test sum_of_multiples_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest sum_of_multiples_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest sum_of_multiples_test.py -v +``` + ## 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..96d4673092 100644 --- a/exercises/tournament/README.md +++ b/exercises/tournament/README.md @@ -78,6 +78,19 @@ 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 command `python -m pytest tournament_test.py` +(`py.test tournament_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest tournament_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest tournament_test.py -v +``` + ## 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..faa0598d0c 100644 --- a/exercises/transpose/README.md +++ b/exercises/transpose/README.md @@ -72,6 +72,19 @@ 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 command `python -m pytest transpose_test.py` +(`py.test transpose_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest transpose_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest transpose_test.py -v +``` + ## 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..a90c0b0c1c 100644 --- a/exercises/tree-building/README.md +++ b/exercises/tree-building/README.md @@ -40,6 +40,19 @@ 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 command `python -m pytest tree_building_test.py` +(`py.test tree_building_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest tree_building_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest tree_building_test.py -v +``` + ## 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..134d15d562 100644 --- a/exercises/triangle/README.md +++ b/exercises/triangle/README.md @@ -36,6 +36,19 @@ 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 command `python -m pytest triangle_test.py` +(`py.test triangle_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest triangle_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest triangle_test.py -v +``` + ## 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..69c49a2021 100644 --- a/exercises/trinary/README.md +++ b/exercises/trinary/README.md @@ -35,6 +35,19 @@ 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 command `python -m pytest trinary_test.py` +(`py.test trinary_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest trinary_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest trinary_test.py -v +``` + ## 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..2083504369 100644 --- a/exercises/twelve-days/README.md +++ b/exercises/twelve-days/README.md @@ -42,6 +42,19 @@ 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 command `python -m pytest twelve_days_test.py` +(`py.test twelve_days_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest twelve_days_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest twelve_days_test.py -v +``` + ## 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..b1684ca075 100644 --- a/exercises/two-bucket/README.md +++ b/exercises/two-bucket/README.md @@ -43,6 +43,19 @@ 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 command `python -m pytest two_bucket_test.py` +(`py.test two_bucket_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest two_bucket_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest two_bucket_test.py -v +``` + ## 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..d32c43de48 100644 --- a/exercises/two-fer/README.md +++ b/exercises/two-fer/README.md @@ -26,6 +26,19 @@ 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 command `python -m pytest two_fer_test.py` +(`py.test two_fer_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest two_fer_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest two_fer_test.py -v +``` + ## 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..af54bfa220 100644 --- a/exercises/variable-length-quantity/README.md +++ b/exercises/variable-length-quantity/README.md @@ -45,6 +45,19 @@ 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 command `python -m pytest variable_length_quantity_test.py` +(`py.test variable_length_quantity_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest variable_length_quantity_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest variable_length_quantity_test.py -v +``` + ## 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..6249d9094a 100644 --- a/exercises/word-count/README.md +++ b/exercises/word-count/README.md @@ -25,6 +25,19 @@ 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 command `python -m pytest word_count_test.py` +(`py.test word_count_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest word_count_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest word_count_test.py -v +``` + ## 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..bd0787ce22 100644 --- a/exercises/word-search/README.md +++ b/exercises/word-search/README.md @@ -40,6 +40,19 @@ 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 command `python -m pytest word_search_test.py` +(`py.test word_search_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest word_search_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest word_search_test.py -v +``` + ## 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..b6e8933361 100644 --- a/exercises/wordy/README.md +++ b/exercises/wordy/README.md @@ -65,6 +65,19 @@ 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 command `python -m pytest wordy_test.py` +(`py.test wordy_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest wordy_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest wordy_test.py -v +``` + ## 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..320e9e9e16 100644 --- a/exercises/zebra-puzzle/README.md +++ b/exercises/zebra-puzzle/README.md @@ -39,6 +39,19 @@ 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 command `python -m pytest zebra_puzzle_test.py` +(`py.test zebra_puzzle_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest zebra_puzzle_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest zebra_puzzle_test.py -v +``` + ## 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..6c6b65c6f8 100644 --- a/exercises/zipper/README.md +++ b/exercises/zipper/README.md @@ -41,6 +41,19 @@ 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 command `python -m pytest zipper_test.py` +(`py.test zipper_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with +`-v` to be more verbose like this: `pytest zipper_test.py`. Using the +`-x` flag will cause the test to fail at the first failure instead of it +trying all cases before exiting. + +To run this exercises's tests for example, run this command: +``` +python -m pytest zipper_test.py -v +``` + ## Submitting Exercises Note that, when trying to submit an exercise, make sure the solution is in the `$EXERCISM_WORKSPACE/python/zipper` directory. From d67cfb86cbe640ddc177a2b0c1975ad61938abe2 Mon Sep 17 00:00:00 2001 From: Corey McCandless Date: Fri, 23 Feb 2018 09:00:24 -0600 Subject: [PATCH 3/4] rewrite Running the tests section for clarity --- config/exercise_readme.go.tmpl | 35 +++++++++++++----- exercises/accumulate/README.md | 37 ++++++++++++++----- exercises/acronym/README.md | 37 ++++++++++++++----- exercises/all-your-base/README.md | 37 ++++++++++++++----- exercises/allergies/README.md | 37 ++++++++++++++----- exercises/alphametics/README.md | 37 ++++++++++++++----- exercises/anagram/README.md | 37 ++++++++++++++----- exercises/armstrong-numbers/README.md | 37 ++++++++++++++----- exercises/atbash-cipher/README.md | 37 ++++++++++++++----- exercises/beer-song/README.md | 37 ++++++++++++++----- exercises/binary-search-tree/README.md | 37 ++++++++++++++----- exercises/binary-search/README.md | 37 ++++++++++++++----- exercises/binary/README.md | 37 ++++++++++++++----- exercises/bob/README.md | 37 ++++++++++++++----- exercises/book-store/README.md | 37 ++++++++++++++----- exercises/bowling/README.md | 37 ++++++++++++++----- exercises/bracket-push/README.md | 35 +++++++++++++----- exercises/change/README.md | 37 ++++++++++++++----- exercises/circular-buffer/README.md | 37 ++++++++++++++----- exercises/clock/README.md | 37 ++++++++++++++----- exercises/collatz-conjecture/README.md | 37 ++++++++++++++----- exercises/complex-numbers/README.md | 37 ++++++++++++++----- exercises/connect/README.md | 37 ++++++++++++++----- exercises/crypto-square/README.md | 37 ++++++++++++++----- exercises/custom-set/README.md | 35 +++++++++++++----- exercises/diamond/README.md | 37 ++++++++++++++----- exercises/difference-of-squares/README.md | 37 ++++++++++++++----- exercises/diffie-hellman/README.md | 37 ++++++++++++++----- exercises/dominoes/README.md | 37 ++++++++++++++----- exercises/dot-dsl/README.md | 37 ++++++++++++++----- exercises/error-handling/README.md | 37 ++++++++++++++----- exercises/etl/README.md | 37 ++++++++++++++----- exercises/flatten-array/README.md | 37 ++++++++++++++----- exercises/food-chain/README.md | 37 ++++++++++++++----- exercises/forth/README.md | 37 ++++++++++++++----- exercises/gigasecond/README.md | 37 ++++++++++++++----- exercises/go-counting/README.md | 37 ++++++++++++++----- exercises/grade-school/README.md | 37 ++++++++++++++----- exercises/grains/README.md | 37 ++++++++++++++----- exercises/grep/README.md | 37 ++++++++++++++----- exercises/hamming/README.md | 37 ++++++++++++++----- exercises/hello-world/README.md | 37 ++++++++++++++----- exercises/hexadecimal/README.md | 37 ++++++++++++++----- exercises/house/README.md | 37 ++++++++++++++----- exercises/isbn-verifier/README.md | 37 ++++++++++++++----- exercises/isogram/README.md | 37 ++++++++++++++----- exercises/kindergarten-garden/README.md | 37 ++++++++++++++----- exercises/largest-series-product/README.md | 37 ++++++++++++++----- exercises/leap/README.md | 37 ++++++++++++++----- exercises/linked-list/README.md | 37 ++++++++++++++----- exercises/list-ops/README.md | 37 ++++++++++++++----- exercises/luhn/README.md | 37 ++++++++++++++----- exercises/markdown/README.md | 35 +++++++++++++----- exercises/matrix/README.md | 37 ++++++++++++++----- exercises/meetup/README.md | 37 ++++++++++++++----- exercises/minesweeper/README.md | 37 ++++++++++++++----- exercises/nth-prime/README.md | 37 ++++++++++++++----- exercises/nucleotide-count/README.md | 37 ++++++++++++++----- exercises/ocr-numbers/README.md | 37 ++++++++++++++----- exercises/octal/README.md | 37 ++++++++++++++----- exercises/palindrome-products/README.md | 37 ++++++++++++++----- exercises/pangram/README.md | 37 ++++++++++++++----- exercises/parallel-letter-frequency/README.md | 35 +++++++++++++----- exercises/pascals-triangle/README.md | 37 ++++++++++++++----- exercises/perfect-numbers/README.md | 37 ++++++++++++++----- exercises/phone-number/README.md | 37 ++++++++++++++----- exercises/pig-latin/README.md | 37 ++++++++++++++----- exercises/point-mutations/README.md | 37 ++++++++++++++----- exercises/poker/README.md | 37 ++++++++++++++----- exercises/pov/README.md | 37 ++++++++++++++----- exercises/prime-factors/README.md | 37 ++++++++++++++----- exercises/protein-translation/README.md | 37 ++++++++++++++----- exercises/proverb/README.md | 37 ++++++++++++++----- exercises/pythagorean-triplet/README.md | 37 ++++++++++++++----- exercises/queen-attack/README.md | 37 ++++++++++++++----- exercises/rail-fence-cipher/README.md | 37 ++++++++++++++----- exercises/raindrops/README.md | 37 ++++++++++++++----- exercises/react/README.md | 37 ++++++++++++++----- exercises/rectangles/README.md | 37 ++++++++++++++----- exercises/reverse-string/README.md | 37 ++++++++++++++----- exercises/rna-transcription/README.md | 37 ++++++++++++++----- exercises/robot-name/README.md | 37 ++++++++++++++----- exercises/robot-simulator/README.md | 37 ++++++++++++++----- exercises/roman-numerals/README.md | 37 ++++++++++++++----- exercises/rotational-cipher/README.md | 37 ++++++++++++++----- exercises/run-length-encoding/README.md | 37 ++++++++++++++----- exercises/saddle-points/README.md | 37 ++++++++++++++----- exercises/say/README.md | 37 ++++++++++++++----- exercises/scale-generator/README.md | 37 ++++++++++++++----- exercises/scrabble-score/README.md | 37 ++++++++++++++----- exercises/secret-handshake/README.md | 37 ++++++++++++++----- exercises/series/README.md | 37 ++++++++++++++----- exercises/sieve/README.md | 37 ++++++++++++++----- exercises/simple-cipher/README.md | 37 ++++++++++++++----- exercises/simple-linked-list/README.md | 37 ++++++++++++++----- exercises/space-age/README.md | 37 ++++++++++++++----- exercises/spiral-matrix/README.md | 37 ++++++++++++++----- exercises/strain/README.md | 37 ++++++++++++++----- exercises/sublist/README.md | 37 ++++++++++++++----- exercises/sum-of-multiples/README.md | 37 ++++++++++++++----- exercises/tournament/README.md | 37 ++++++++++++++----- exercises/transpose/README.md | 37 ++++++++++++++----- exercises/tree-building/README.md | 37 ++++++++++++++----- exercises/triangle/README.md | 37 ++++++++++++++----- exercises/trinary/README.md | 37 ++++++++++++++----- exercises/twelve-days/README.md | 37 ++++++++++++++----- exercises/two-bucket/README.md | 37 ++++++++++++++----- exercises/two-fer/README.md | 37 ++++++++++++++----- exercises/variable-length-quantity/README.md | 37 ++++++++++++++----- exercises/word-count/README.md | 37 ++++++++++++++----- exercises/word-search/README.md | 37 ++++++++++++++----- exercises/wordy/README.md | 37 ++++++++++++++----- exercises/zebra-puzzle/README.md | 37 ++++++++++++++----- exercises/zipper/README.md | 37 ++++++++++++++----- 114 files changed, 3073 insertions(+), 1135 deletions(-) diff --git a/config/exercise_readme.go.tmpl b/config/exercise_readme.go.tmpl index 01707f7a7b..590e8e0669 100644 --- a/config/exercise_readme.go.tmpl +++ b/config/exercise_readme.go.tmpl @@ -20,16 +20,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest {{ .Spec.SnakeCaseName }}_test.py` -(`py.test {{ .Spec.SnakeCaseName }}_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest {{ .Spec.SnakeCaseName }}_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. +To run the tests, run the appropriate command below: -To run this exercises's tests for example, run this command: -``` -python -m pytest {{ .Spec.SnakeCaseName }}_test.py -v -``` +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test {{ .Spec.SnakeCaseName }}_test.py` | +| 3.3+ | `pytest {{ .Spec.SnakeCaseName }}_test.py` | +| 2.7, 3.3+ | `python -m pytest {{ .Spec.SnakeCaseName }}_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/accumulate/README.md b/exercises/accumulate/README.md index c136e6d8a0..7b11379bd9 100644 --- a/exercises/accumulate/README.md +++ b/exercises/accumulate/README.md @@ -41,16 +41,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest accumulate_test.py` -(`py.test accumulate_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest accumulate_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest accumulate_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test accumulate_test.py` | +| 3.3+ | `pytest accumulate_test.py` | +| 2.7, 3.3+ | `python -m pytest accumulate_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/acronym/README.md b/exercises/acronym/README.md index 7a7ed48851..4019cc9a38 100644 --- a/exercises/acronym/README.md +++ b/exercises/acronym/README.md @@ -23,16 +23,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest acronym_test.py` -(`py.test acronym_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest acronym_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest acronym_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test acronym_test.py` | +| 3.3+ | `pytest acronym_test.py` | +| 2.7, 3.3+ | `python -m pytest acronym_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/all-your-base/README.md b/exercises/all-your-base/README.md index 746507c4e8..17e61a8fc5 100644 --- a/exercises/all-your-base/README.md +++ b/exercises/all-your-base/README.md @@ -47,16 +47,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest all_your_base_test.py` -(`py.test all_your_base_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest all_your_base_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest all_your_base_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test all_your_base_test.py` | +| 3.3+ | `pytest all_your_base_test.py` | +| 2.7, 3.3+ | `python -m pytest all_your_base_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/allergies/README.md b/exercises/allergies/README.md index 6ef88dad1b..8ad7308660 100644 --- a/exercises/allergies/README.md +++ b/exercises/allergies/README.md @@ -45,16 +45,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest allergies_test.py` -(`py.test allergies_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest allergies_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest allergies_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test allergies_test.py` | +| 3.3+ | `pytest allergies_test.py` | +| 2.7, 3.3+ | `python -m pytest allergies_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/alphametics/README.md b/exercises/alphametics/README.md index 3117bc5954..cb6b554b2e 100644 --- a/exercises/alphametics/README.md +++ b/exercises/alphametics/README.md @@ -47,16 +47,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest alphametics_test.py` -(`py.test alphametics_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest alphametics_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest alphametics_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test alphametics_test.py` | +| 3.3+ | `pytest alphametics_test.py` | +| 2.7, 3.3+ | `python -m pytest alphametics_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/anagram/README.md b/exercises/anagram/README.md index 514774c303..4b9ad91cef 100644 --- a/exercises/anagram/README.md +++ b/exercises/anagram/README.md @@ -22,16 +22,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest anagram_test.py` -(`py.test anagram_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest anagram_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest anagram_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test anagram_test.py` | +| 3.3+ | `pytest anagram_test.py` | +| 2.7, 3.3+ | `python -m pytest anagram_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/armstrong-numbers/README.md b/exercises/armstrong-numbers/README.md index 5336fa3109..601860c01e 100644 --- a/exercises/armstrong-numbers/README.md +++ b/exercises/armstrong-numbers/README.md @@ -27,16 +27,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest armstrong_numbers_test.py` -(`py.test armstrong_numbers_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest armstrong_numbers_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest armstrong_numbers_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test armstrong_numbers_test.py` | +| 3.3+ | `pytest armstrong_numbers_test.py` | +| 2.7, 3.3+ | `python -m pytest armstrong_numbers_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/atbash-cipher/README.md b/exercises/atbash-cipher/README.md index bced6b88b2..34d7ced843 100644 --- a/exercises/atbash-cipher/README.md +++ b/exercises/atbash-cipher/README.md @@ -44,16 +44,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest atbash_cipher_test.py` -(`py.test atbash_cipher_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest atbash_cipher_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest atbash_cipher_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test atbash_cipher_test.py` | +| 3.3+ | `pytest atbash_cipher_test.py` | +| 2.7, 3.3+ | `python -m pytest atbash_cipher_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/beer-song/README.md b/exercises/beer-song/README.md index f66738fe8d..c1779b66b6 100644 --- a/exercises/beer-song/README.md +++ b/exercises/beer-song/README.md @@ -336,16 +336,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest beer_song_test.py` -(`py.test beer_song_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest beer_song_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest beer_song_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test beer_song_test.py` | +| 3.3+ | `pytest beer_song_test.py` | +| 2.7, 3.3+ | `python -m pytest beer_song_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/binary-search-tree/README.md b/exercises/binary-search-tree/README.md index d787c4760e..389c3d401b 100644 --- a/exercises/binary-search-tree/README.md +++ b/exercises/binary-search-tree/README.md @@ -69,16 +69,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest binary_search_tree_test.py` -(`py.test binary_search_tree_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest binary_search_tree_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest binary_search_tree_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test binary_search_tree_test.py` | +| 3.3+ | `pytest binary_search_tree_test.py` | +| 2.7, 3.3+ | `python -m pytest binary_search_tree_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/binary-search/README.md b/exercises/binary-search/README.md index ebed196f2d..dbd9284edc 100644 --- a/exercises/binary-search/README.md +++ b/exercises/binary-search/README.md @@ -50,16 +50,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest binary_search_test.py` -(`py.test binary_search_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest binary_search_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest binary_search_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test binary_search_test.py` | +| 3.3+ | `pytest binary_search_test.py` | +| 2.7, 3.3+ | `python -m pytest binary_search_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/binary/README.md b/exercises/binary/README.md index 0b40da1d04..33201d37c1 100644 --- a/exercises/binary/README.md +++ b/exercises/binary/README.md @@ -46,16 +46,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest binary_test.py` -(`py.test binary_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest binary_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest binary_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test binary_test.py` | +| 3.3+ | `pytest binary_test.py` | +| 2.7, 3.3+ | `python -m pytest binary_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/bob/README.md b/exercises/bob/README.md index b719078340..fa3206a71d 100644 --- a/exercises/bob/README.md +++ b/exercises/bob/README.md @@ -29,16 +29,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest bob_test.py` -(`py.test bob_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest bob_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest bob_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test bob_test.py` | +| 3.3+ | `pytest bob_test.py` | +| 2.7, 3.3+ | `python -m pytest bob_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/book-store/README.md b/exercises/book-store/README.md index 10fc4125c8..5b5f8b5d55 100644 --- a/exercises/book-store/README.md +++ b/exercises/book-store/README.md @@ -83,16 +83,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest book_store_test.py` -(`py.test book_store_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest book_store_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest book_store_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test book_store_test.py` | +| 3.3+ | `pytest book_store_test.py` | +| 2.7, 3.3+ | `python -m pytest book_store_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/bowling/README.md b/exercises/bowling/README.md index e63ed26a81..caf4eab738 100644 --- a/exercises/bowling/README.md +++ b/exercises/bowling/README.md @@ -76,16 +76,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest bowling_test.py` -(`py.test bowling_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest bowling_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest bowling_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test bowling_test.py` | +| 3.3+ | `pytest bowling_test.py` | +| 2.7, 3.3+ | `python -m pytest bowling_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/bracket-push/README.md b/exercises/bracket-push/README.md index 6276cb0c31..64e4a7c371 100644 --- a/exercises/bracket-push/README.md +++ b/exercises/bracket-push/README.md @@ -19,16 +19,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest bracket_push_test.py` -(`py.test bracket_push_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest bracket_push_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. +To run the tests, run the appropriate command below: -To run this exercises's tests for example, run this command: -``` -python -m pytest bracket_push_test.py -v -``` +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test bracket_push_test.py` | +| 3.3+ | `pytest bracket_push_test.py` | +| 2.7, 3.3+ | `python -m pytest bracket_push_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/change/README.md b/exercises/change/README.md index de5917ec9c..2cc4525c16 100644 --- a/exercises/change/README.md +++ b/exercises/change/README.md @@ -32,16 +32,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest change_test.py` -(`py.test change_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest change_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest change_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test change_test.py` | +| 3.3+ | `pytest change_test.py` | +| 2.7, 3.3+ | `python -m pytest change_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/circular-buffer/README.md b/exercises/circular-buffer/README.md index 54966a4cd6..41804fc213 100644 --- a/exercises/circular-buffer/README.md +++ b/exercises/circular-buffer/README.md @@ -66,16 +66,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest circular_buffer_test.py` -(`py.test circular_buffer_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest circular_buffer_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest circular_buffer_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test circular_buffer_test.py` | +| 3.3+ | `pytest circular_buffer_test.py` | +| 2.7, 3.3+ | `python -m pytest circular_buffer_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/clock/README.md b/exercises/clock/README.md index 2cdcd267b6..e4d41d5c26 100644 --- a/exercises/clock/README.md +++ b/exercises/clock/README.md @@ -22,16 +22,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest clock_test.py` -(`py.test clock_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest clock_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest clock_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test clock_test.py` | +| 3.3+ | `pytest clock_test.py` | +| 2.7, 3.3+ | `python -m pytest clock_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/collatz-conjecture/README.md b/exercises/collatz-conjecture/README.md index ac2462b4d2..d3c2f012d8 100644 --- a/exercises/collatz-conjecture/README.md +++ b/exercises/collatz-conjecture/README.md @@ -47,16 +47,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest collatz_conjecture_test.py` -(`py.test collatz_conjecture_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest collatz_conjecture_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest collatz_conjecture_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test collatz_conjecture_test.py` | +| 3.3+ | `pytest collatz_conjecture_test.py` | +| 2.7, 3.3+ | `python -m pytest collatz_conjecture_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/complex-numbers/README.md b/exercises/complex-numbers/README.md index 13d8008190..2c6d206dc8 100644 --- a/exercises/complex-numbers/README.md +++ b/exercises/complex-numbers/README.md @@ -52,16 +52,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest complex_numbers_test.py` -(`py.test complex_numbers_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest complex_numbers_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest complex_numbers_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test complex_numbers_test.py` | +| 3.3+ | `pytest complex_numbers_test.py` | +| 2.7, 3.3+ | `python -m pytest complex_numbers_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/connect/README.md b/exercises/connect/README.md index eabe111b70..19336376c6 100644 --- a/exercises/connect/README.md +++ b/exercises/connect/README.md @@ -46,16 +46,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest connect_test.py` -(`py.test connect_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest connect_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest connect_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test connect_test.py` | +| 3.3+ | `pytest connect_test.py` | +| 2.7, 3.3+ | `python -m pytest connect_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/crypto-square/README.md b/exercises/crypto-square/README.md index 50a2910e9f..f29a161576 100644 --- a/exercises/crypto-square/README.md +++ b/exercises/crypto-square/README.md @@ -85,16 +85,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest crypto_square_test.py` -(`py.test crypto_square_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest crypto_square_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest crypto_square_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test crypto_square_test.py` | +| 3.3+ | `pytest crypto_square_test.py` | +| 2.7, 3.3+ | `python -m pytest crypto_square_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/custom-set/README.md b/exercises/custom-set/README.md index 1c38bd1f02..2f18c035a9 100644 --- a/exercises/custom-set/README.md +++ b/exercises/custom-set/README.md @@ -23,16 +23,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest custom_set_test.py` -(`py.test custom_set_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest custom_set_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. +To run the tests, run the appropriate command below: -To run this exercises's tests for example, run this command: -``` -python -m pytest custom_set_test.py -v -``` +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test custom_set_test.py` | +| 3.3+ | `pytest custom_set_test.py` | +| 2.7, 3.3+ | `python -m pytest custom_set_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/diamond/README.md b/exercises/diamond/README.md index d12dfaae25..998cc309b0 100644 --- a/exercises/diamond/README.md +++ b/exercises/diamond/README.md @@ -68,16 +68,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest diamond_test.py` -(`py.test diamond_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest diamond_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest diamond_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test diamond_test.py` | +| 3.3+ | `pytest diamond_test.py` | +| 2.7, 3.3+ | `python -m pytest diamond_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/difference-of-squares/README.md b/exercises/difference-of-squares/README.md index 199509d0ef..6ccad72165 100644 --- a/exercises/difference-of-squares/README.md +++ b/exercises/difference-of-squares/README.md @@ -28,16 +28,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest difference_of_squares_test.py` -(`py.test difference_of_squares_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest difference_of_squares_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest difference_of_squares_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test difference_of_squares_test.py` | +| 3.3+ | `pytest difference_of_squares_test.py` | +| 2.7, 3.3+ | `python -m pytest difference_of_squares_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/diffie-hellman/README.md b/exercises/diffie-hellman/README.md index 95d740ad2e..25b2a5a0dd 100644 --- a/exercises/diffie-hellman/README.md +++ b/exercises/diffie-hellman/README.md @@ -70,16 +70,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest diffie_hellman_test.py` -(`py.test diffie_hellman_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest diffie_hellman_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest diffie_hellman_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test diffie_hellman_test.py` | +| 3.3+ | `pytest diffie_hellman_test.py` | +| 2.7, 3.3+ | `python -m pytest diffie_hellman_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/dominoes/README.md b/exercises/dominoes/README.md index 62c968439d..3e3db7825e 100644 --- a/exercises/dominoes/README.md +++ b/exercises/dominoes/README.md @@ -30,16 +30,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest dominoes_test.py` -(`py.test dominoes_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest dominoes_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest dominoes_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test dominoes_test.py` | +| 3.3+ | `pytest dominoes_test.py` | +| 2.7, 3.3+ | `python -m pytest dominoes_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/dot-dsl/README.md b/exercises/dot-dsl/README.md index 90798c0bbb..1aebb9a966 100644 --- a/exercises/dot-dsl/README.md +++ b/exercises/dot-dsl/README.md @@ -56,16 +56,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest dot_dsl_test.py` -(`py.test dot_dsl_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest dot_dsl_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest dot_dsl_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test dot_dsl_test.py` | +| 3.3+ | `pytest dot_dsl_test.py` | +| 2.7, 3.3+ | `python -m pytest dot_dsl_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/error-handling/README.md b/exercises/error-handling/README.md index 45143b814c..e13a4b166b 100644 --- a/exercises/error-handling/README.md +++ b/exercises/error-handling/README.md @@ -35,16 +35,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest error_handling_test.py` -(`py.test error_handling_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest error_handling_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest error_handling_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test error_handling_test.py` | +| 3.3+ | `pytest error_handling_test.py` | +| 2.7, 3.3+ | `python -m pytest error_handling_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/etl/README.md b/exercises/etl/README.md index e5fb38bb73..3f741ace93 100644 --- a/exercises/etl/README.md +++ b/exercises/etl/README.md @@ -62,16 +62,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest etl_test.py` -(`py.test etl_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest etl_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest etl_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test etl_test.py` | +| 3.3+ | `pytest etl_test.py` | +| 2.7, 3.3+ | `python -m pytest etl_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/flatten-array/README.md b/exercises/flatten-array/README.md index de0d542487..e3467d9ef0 100644 --- a/exercises/flatten-array/README.md +++ b/exercises/flatten-array/README.md @@ -26,16 +26,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest flatten_array_test.py` -(`py.test flatten_array_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest flatten_array_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest flatten_array_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test flatten_array_test.py` | +| 3.3+ | `pytest flatten_array_test.py` | +| 2.7, 3.3+ | `python -m pytest flatten_array_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/food-chain/README.md b/exercises/food-chain/README.md index a4c0c94c9e..6d975349b8 100644 --- a/exercises/food-chain/README.md +++ b/exercises/food-chain/README.md @@ -79,16 +79,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest food_chain_test.py` -(`py.test food_chain_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest food_chain_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest food_chain_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test food_chain_test.py` | +| 3.3+ | `pytest food_chain_test.py` | +| 2.7, 3.3+ | `python -m pytest food_chain_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/forth/README.md b/exercises/forth/README.md index f56f388db4..82c3b8de2f 100644 --- a/exercises/forth/README.md +++ b/exercises/forth/README.md @@ -41,16 +41,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest forth_test.py` -(`py.test forth_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest forth_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest forth_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test forth_test.py` | +| 3.3+ | `pytest forth_test.py` | +| 2.7, 3.3+ | `python -m pytest forth_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/gigasecond/README.md b/exercises/gigasecond/README.md index 289e7ed563..35b01ada6d 100644 --- a/exercises/gigasecond/README.md +++ b/exercises/gigasecond/README.md @@ -20,16 +20,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest gigasecond_test.py` -(`py.test gigasecond_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest gigasecond_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest gigasecond_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test gigasecond_test.py` | +| 3.3+ | `pytest gigasecond_test.py` | +| 2.7, 3.3+ | `python -m pytest gigasecond_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/go-counting/README.md b/exercises/go-counting/README.md index d503f50217..3d508effcf 100644 --- a/exercises/go-counting/README.md +++ b/exercises/go-counting/README.md @@ -49,16 +49,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest go_counting_test.py` -(`py.test go_counting_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest go_counting_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest go_counting_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test go_counting_test.py` | +| 3.3+ | `pytest go_counting_test.py` | +| 2.7, 3.3+ | `python -m pytest go_counting_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/grade-school/README.md b/exercises/grade-school/README.md index 1a25cf0e83..2c877f9f3b 100644 --- a/exercises/grade-school/README.md +++ b/exercises/grade-school/README.md @@ -50,16 +50,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest grade_school_test.py` -(`py.test grade_school_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest grade_school_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest grade_school_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test grade_school_test.py` | +| 3.3+ | `pytest grade_school_test.py` | +| 2.7, 3.3+ | `python -m pytest grade_school_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/grains/README.md b/exercises/grains/README.md index ace408830a..a1439981ee 100644 --- a/exercises/grains/README.md +++ b/exercises/grains/README.md @@ -42,16 +42,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest grains_test.py` -(`py.test grains_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest grains_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest grains_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test grains_test.py` | +| 3.3+ | `pytest grains_test.py` | +| 2.7, 3.3+ | `python -m pytest grains_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/grep/README.md b/exercises/grep/README.md index 963b3515df..1ea0999132 100644 --- a/exercises/grep/README.md +++ b/exercises/grep/README.md @@ -80,16 +80,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest grep_test.py` -(`py.test grep_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest grep_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest grep_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test grep_test.py` | +| 3.3+ | `pytest grep_test.py` | +| 2.7, 3.3+ | `python -m pytest grep_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/hamming/README.md b/exercises/hamming/README.md index 8874e58322..fca64c1f5d 100644 --- a/exercises/hamming/README.md +++ b/exercises/hamming/README.md @@ -51,16 +51,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest hamming_test.py` -(`py.test hamming_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest hamming_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest hamming_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test hamming_test.py` | +| 3.3+ | `pytest hamming_test.py` | +| 2.7, 3.3+ | `python -m pytest hamming_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/hello-world/README.md b/exercises/hello-world/README.md index 1f0c7059ea..c53adf3f0e 100644 --- a/exercises/hello-world/README.md +++ b/exercises/hello-world/README.md @@ -30,16 +30,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest hello_world_test.py` -(`py.test hello_world_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest hello_world_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest hello_world_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test hello_world_test.py` | +| 3.3+ | `pytest hello_world_test.py` | +| 2.7, 3.3+ | `python -m pytest hello_world_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/hexadecimal/README.md b/exercises/hexadecimal/README.md index e15baa41e8..f65d834de6 100644 --- a/exercises/hexadecimal/README.md +++ b/exercises/hexadecimal/README.md @@ -23,16 +23,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest hexadecimal_test.py` -(`py.test hexadecimal_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest hexadecimal_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest hexadecimal_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test hexadecimal_test.py` | +| 3.3+ | `pytest hexadecimal_test.py` | +| 2.7, 3.3+ | `python -m pytest hexadecimal_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/house/README.md b/exercises/house/README.md index 9bc98179a7..7fffef593a 100644 --- a/exercises/house/README.md +++ b/exercises/house/README.md @@ -121,16 +121,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest house_test.py` -(`py.test house_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest house_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest house_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test house_test.py` | +| 3.3+ | `pytest house_test.py` | +| 2.7, 3.3+ | `python -m pytest house_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/isbn-verifier/README.md b/exercises/isbn-verifier/README.md index d58e9f83c5..06ec9b8435 100644 --- a/exercises/isbn-verifier/README.md +++ b/exercises/isbn-verifier/README.md @@ -56,16 +56,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest isbn_verifier_test.py` -(`py.test isbn_verifier_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest isbn_verifier_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest isbn_verifier_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test isbn_verifier_test.py` | +| 3.3+ | `pytest isbn_verifier_test.py` | +| 2.7, 3.3+ | `python -m pytest isbn_verifier_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/isogram/README.md b/exercises/isogram/README.md index 9f5533d55f..e8964f5b85 100644 --- a/exercises/isogram/README.md +++ b/exercises/isogram/README.md @@ -29,16 +29,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest isogram_test.py` -(`py.test isogram_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest isogram_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest isogram_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test isogram_test.py` | +| 3.3+ | `pytest isogram_test.py` | +| 2.7, 3.3+ | `python -m pytest isogram_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/kindergarten-garden/README.md b/exercises/kindergarten-garden/README.md index 4bef1446d4..b347245fe3 100644 --- a/exercises/kindergarten-garden/README.md +++ b/exercises/kindergarten-garden/README.md @@ -75,16 +75,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest kindergarten_garden_test.py` -(`py.test kindergarten_garden_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest kindergarten_garden_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest kindergarten_garden_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test kindergarten_garden_test.py` | +| 3.3+ | `pytest kindergarten_garden_test.py` | +| 2.7, 3.3+ | `python -m pytest kindergarten_garden_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/largest-series-product/README.md b/exercises/largest-series-product/README.md index e0c7978c60..d48ba014ca 100644 --- a/exercises/largest-series-product/README.md +++ b/exercises/largest-series-product/README.md @@ -29,16 +29,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest largest_series_product_test.py` -(`py.test largest_series_product_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest largest_series_product_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest largest_series_product_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test largest_series_product_test.py` | +| 3.3+ | `pytest largest_series_product_test.py` | +| 2.7, 3.3+ | `python -m pytest largest_series_product_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/leap/README.md b/exercises/leap/README.md index 0c6674fe9d..2bc13b2266 100644 --- a/exercises/leap/README.md +++ b/exercises/leap/README.md @@ -42,16 +42,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest leap_test.py` -(`py.test leap_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest leap_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest leap_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test leap_test.py` | +| 3.3+ | `pytest leap_test.py` | +| 2.7, 3.3+ | `python -m pytest leap_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/linked-list/README.md b/exercises/linked-list/README.md index bff3d0f636..59d5ff4ab7 100644 --- a/exercises/linked-list/README.md +++ b/exercises/linked-list/README.md @@ -43,16 +43,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest linked_list_test.py` -(`py.test linked_list_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest linked_list_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest linked_list_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test linked_list_test.py` | +| 3.3+ | `pytest linked_list_test.py` | +| 2.7, 3.3+ | `python -m pytest linked_list_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/list-ops/README.md b/exercises/list-ops/README.md index 84c2f271d8..853ea01d67 100644 --- a/exercises/list-ops/README.md +++ b/exercises/list-ops/README.md @@ -22,16 +22,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest list_ops_test.py` -(`py.test list_ops_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest list_ops_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest list_ops_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test list_ops_test.py` | +| 3.3+ | `pytest list_ops_test.py` | +| 2.7, 3.3+ | `python -m pytest list_ops_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/luhn/README.md b/exercises/luhn/README.md index e199db8dd7..41c73c450b 100644 --- a/exercises/luhn/README.md +++ b/exercises/luhn/README.md @@ -80,16 +80,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest luhn_test.py` -(`py.test luhn_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest luhn_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest luhn_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test luhn_test.py` | +| 3.3+ | `pytest luhn_test.py` | +| 2.7, 3.3+ | `python -m pytest luhn_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/markdown/README.md b/exercises/markdown/README.md index 22154c897c..c67ea7d0aa 100644 --- a/exercises/markdown/README.md +++ b/exercises/markdown/README.md @@ -30,16 +30,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest markdown_test.py` -(`py.test markdown_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest markdown_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. +To run the tests, run the appropriate command below: -To run this exercises's tests for example, run this command: -``` -python -m pytest markdown_test.py -v -``` +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test markdown_test.py` | +| 3.3+ | `pytest markdown_test.py` | +| 2.7, 3.3+ | `python -m pytest markdown_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/matrix/README.md b/exercises/matrix/README.md index 0a8151d126..e648d4b146 100644 --- a/exercises/matrix/README.md +++ b/exercises/matrix/README.md @@ -56,16 +56,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest matrix_test.py` -(`py.test matrix_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest matrix_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest matrix_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test matrix_test.py` | +| 3.3+ | `pytest matrix_test.py` | +| 2.7, 3.3+ | `python -m pytest matrix_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/meetup/README.md b/exercises/meetup/README.md index 7a718f0bb8..78625aed67 100644 --- a/exercises/meetup/README.md +++ b/exercises/meetup/README.md @@ -42,16 +42,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest meetup_test.py` -(`py.test meetup_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest meetup_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest meetup_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test meetup_test.py` | +| 3.3+ | `pytest meetup_test.py` | +| 2.7, 3.3+ | `python -m pytest meetup_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/minesweeper/README.md b/exercises/minesweeper/README.md index 2cac314e81..00980f626b 100644 --- a/exercises/minesweeper/README.md +++ b/exercises/minesweeper/README.md @@ -42,16 +42,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest minesweeper_test.py` -(`py.test minesweeper_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest minesweeper_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest minesweeper_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test minesweeper_test.py` | +| 3.3+ | `pytest minesweeper_test.py` | +| 2.7, 3.3+ | `python -m pytest minesweeper_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/nth-prime/README.md b/exercises/nth-prime/README.md index f26a3220f8..003dbcaa54 100644 --- a/exercises/nth-prime/README.md +++ b/exercises/nth-prime/README.md @@ -24,16 +24,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest nth_prime_test.py` -(`py.test nth_prime_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest nth_prime_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest nth_prime_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test nth_prime_test.py` | +| 3.3+ | `pytest nth_prime_test.py` | +| 2.7, 3.3+ | `python -m pytest nth_prime_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/nucleotide-count/README.md b/exercises/nucleotide-count/README.md index 7a097fca17..d98b0d12a6 100644 --- a/exercises/nucleotide-count/README.md +++ b/exercises/nucleotide-count/README.md @@ -28,16 +28,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest nucleotide_count_test.py` -(`py.test nucleotide_count_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest nucleotide_count_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest nucleotide_count_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test nucleotide_count_test.py` | +| 3.3+ | `pytest nucleotide_count_test.py` | +| 2.7, 3.3+ | `python -m pytest nucleotide_count_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/ocr-numbers/README.md b/exercises/ocr-numbers/README.md index 77e048a7ce..aaf75ad141 100644 --- a/exercises/ocr-numbers/README.md +++ b/exercises/ocr-numbers/README.md @@ -94,16 +94,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest ocr_numbers_test.py` -(`py.test ocr_numbers_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest ocr_numbers_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest ocr_numbers_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test ocr_numbers_test.py` | +| 3.3+ | `pytest ocr_numbers_test.py` | +| 2.7, 3.3+ | `python -m pytest ocr_numbers_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/octal/README.md b/exercises/octal/README.md index 1665a79cf4..5b42c56f82 100644 --- a/exercises/octal/README.md +++ b/exercises/octal/README.md @@ -62,16 +62,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest octal_test.py` -(`py.test octal_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest octal_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest octal_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test octal_test.py` | +| 3.3+ | `pytest octal_test.py` | +| 2.7, 3.3+ | `python -m pytest octal_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/palindrome-products/README.md b/exercises/palindrome-products/README.md index e071032f73..30a8680367 100644 --- a/exercises/palindrome-products/README.md +++ b/exercises/palindrome-products/README.md @@ -48,16 +48,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest palindrome_products_test.py` -(`py.test palindrome_products_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest palindrome_products_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest palindrome_products_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test palindrome_products_test.py` | +| 3.3+ | `pytest palindrome_products_test.py` | +| 2.7, 3.3+ | `python -m pytest palindrome_products_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/pangram/README.md b/exercises/pangram/README.md index bc9e123a05..1ad5ec429c 100644 --- a/exercises/pangram/README.md +++ b/exercises/pangram/README.md @@ -24,16 +24,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest pangram_test.py` -(`py.test pangram_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest pangram_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest pangram_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test pangram_test.py` | +| 3.3+ | `pytest pangram_test.py` | +| 2.7, 3.3+ | `python -m pytest pangram_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/parallel-letter-frequency/README.md b/exercises/parallel-letter-frequency/README.md index a6f8d0673d..a644c8eee7 100644 --- a/exercises/parallel-letter-frequency/README.md +++ b/exercises/parallel-letter-frequency/README.md @@ -23,16 +23,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest parallel_letter_frequency_test.py` -(`py.test parallel_letter_frequency_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest parallel_letter_frequency_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. +To run the tests, run the appropriate command below: -To run this exercises's tests for example, run this command: -``` -python -m pytest parallel_letter_frequency_test.py -v -``` +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test parallel_letter_frequency_test.py` | +| 3.3+ | `pytest parallel_letter_frequency_test.py` | +| 2.7, 3.3+ | `python -m pytest parallel_letter_frequency_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/pascals-triangle/README.md b/exercises/pascals-triangle/README.md index 6544f7e4ec..c9cfbc9e87 100644 --- a/exercises/pascals-triangle/README.md +++ b/exercises/pascals-triangle/README.md @@ -30,16 +30,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest pascals_triangle_test.py` -(`py.test pascals_triangle_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest pascals_triangle_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest pascals_triangle_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test pascals_triangle_test.py` | +| 3.3+ | `pytest pascals_triangle_test.py` | +| 2.7, 3.3+ | `python -m pytest pascals_triangle_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/perfect-numbers/README.md b/exercises/perfect-numbers/README.md index 18dbcefc59..9db338ab60 100644 --- a/exercises/perfect-numbers/README.md +++ b/exercises/perfect-numbers/README.md @@ -33,16 +33,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest perfect_numbers_test.py` -(`py.test perfect_numbers_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest perfect_numbers_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest perfect_numbers_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test perfect_numbers_test.py` | +| 3.3+ | `pytest perfect_numbers_test.py` | +| 2.7, 3.3+ | `python -m pytest perfect_numbers_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/phone-number/README.md b/exercises/phone-number/README.md index 2285b6dcb5..0b70823790 100644 --- a/exercises/phone-number/README.md +++ b/exercises/phone-number/README.md @@ -44,16 +44,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest phone_number_test.py` -(`py.test phone_number_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest phone_number_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest phone_number_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test phone_number_test.py` | +| 3.3+ | `pytest phone_number_test.py` | +| 2.7, 3.3+ | `python -m pytest phone_number_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/pig-latin/README.md b/exercises/pig-latin/README.md index 60251ccb09..7fe85e9f3e 100644 --- a/exercises/pig-latin/README.md +++ b/exercises/pig-latin/README.md @@ -33,16 +33,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest pig_latin_test.py` -(`py.test pig_latin_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest pig_latin_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest pig_latin_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test pig_latin_test.py` | +| 3.3+ | `pytest pig_latin_test.py` | +| 2.7, 3.3+ | `python -m pytest pig_latin_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/point-mutations/README.md b/exercises/point-mutations/README.md index c7df9cd852..8275e13ac3 100644 --- a/exercises/point-mutations/README.md +++ b/exercises/point-mutations/README.md @@ -50,16 +50,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest point_mutations_test.py` -(`py.test point_mutations_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest point_mutations_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest point_mutations_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test point_mutations_test.py` | +| 3.3+ | `pytest point_mutations_test.py` | +| 2.7, 3.3+ | `python -m pytest point_mutations_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/poker/README.md b/exercises/poker/README.md index 4ee6886f4d..58d91fc1a9 100644 --- a/exercises/poker/README.md +++ b/exercises/poker/README.md @@ -21,16 +21,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest poker_test.py` -(`py.test poker_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest poker_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest poker_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test poker_test.py` | +| 3.3+ | `pytest poker_test.py` | +| 2.7, 3.3+ | `python -m pytest poker_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/pov/README.md b/exercises/pov/README.md index 264daf6b3a..f054c7d9fd 100644 --- a/exercises/pov/README.md +++ b/exercises/pov/README.md @@ -53,16 +53,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest pov_test.py` -(`py.test pov_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest pov_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest pov_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test pov_test.py` | +| 3.3+ | `pytest pov_test.py` | +| 2.7, 3.3+ | `python -m pytest pov_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/prime-factors/README.md b/exercises/prime-factors/README.md index a806148566..09f5f63d43 100644 --- a/exercises/prime-factors/README.md +++ b/exercises/prime-factors/README.md @@ -45,16 +45,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest prime_factors_test.py` -(`py.test prime_factors_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest prime_factors_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest prime_factors_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test prime_factors_test.py` | +| 3.3+ | `pytest prime_factors_test.py` | +| 2.7, 3.3+ | `python -m pytest prime_factors_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/protein-translation/README.md b/exercises/protein-translation/README.md index 95e28cd099..c7d03ebafd 100644 --- a/exercises/protein-translation/README.md +++ b/exercises/protein-translation/README.md @@ -57,16 +57,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest protein_translation_test.py` -(`py.test protein_translation_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest protein_translation_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest protein_translation_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test protein_translation_test.py` | +| 3.3+ | `pytest protein_translation_test.py` | +| 2.7, 3.3+ | `python -m pytest protein_translation_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/proverb/README.md b/exercises/proverb/README.md index 7797d7b186..992e5ba48b 100644 --- a/exercises/proverb/README.md +++ b/exercises/proverb/README.md @@ -32,16 +32,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest proverb_test.py` -(`py.test proverb_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest proverb_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest proverb_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test proverb_test.py` | +| 3.3+ | `pytest proverb_test.py` | +| 2.7, 3.3+ | `python -m pytest proverb_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/pythagorean-triplet/README.md b/exercises/pythagorean-triplet/README.md index 11c569b1a1..a4b71c8daa 100644 --- a/exercises/pythagorean-triplet/README.md +++ b/exercises/pythagorean-triplet/README.md @@ -33,16 +33,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest pythagorean_triplet_test.py` -(`py.test pythagorean_triplet_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest pythagorean_triplet_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest pythagorean_triplet_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test pythagorean_triplet_test.py` | +| 3.3+ | `pytest pythagorean_triplet_test.py` | +| 2.7, 3.3+ | `python -m pytest pythagorean_triplet_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/queen-attack/README.md b/exercises/queen-attack/README.md index 2d2901ef17..00c286788a 100644 --- a/exercises/queen-attack/README.md +++ b/exercises/queen-attack/README.md @@ -42,16 +42,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest queen_attack_test.py` -(`py.test queen_attack_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest queen_attack_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest queen_attack_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test queen_attack_test.py` | +| 3.3+ | `pytest queen_attack_test.py` | +| 2.7, 3.3+ | `python -m pytest queen_attack_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/rail-fence-cipher/README.md b/exercises/rail-fence-cipher/README.md index 9004c272a9..3c0448f643 100644 --- a/exercises/rail-fence-cipher/README.md +++ b/exercises/rail-fence-cipher/README.md @@ -74,16 +74,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest rail_fence_cipher_test.py` -(`py.test rail_fence_cipher_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest rail_fence_cipher_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest rail_fence_cipher_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test rail_fence_cipher_test.py` | +| 3.3+ | `pytest rail_fence_cipher_test.py` | +| 2.7, 3.3+ | `python -m pytest rail_fence_cipher_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/raindrops/README.md b/exercises/raindrops/README.md index d34fad7b83..87dd361fb0 100644 --- a/exercises/raindrops/README.md +++ b/exercises/raindrops/README.md @@ -33,16 +33,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest raindrops_test.py` -(`py.test raindrops_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest raindrops_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest raindrops_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test raindrops_test.py` | +| 3.3+ | `pytest raindrops_test.py` | +| 2.7, 3.3+ | `python -m pytest raindrops_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/react/README.md b/exercises/react/README.md index b33c59e8dc..386be26da5 100644 --- a/exercises/react/README.md +++ b/exercises/react/README.md @@ -31,16 +31,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest react_test.py` -(`py.test react_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest react_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest react_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test react_test.py` | +| 3.3+ | `pytest react_test.py` | +| 2.7, 3.3+ | `python -m pytest react_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/rectangles/README.md b/exercises/rectangles/README.md index e2bdafa450..38dc2ce8a5 100644 --- a/exercises/rectangles/README.md +++ b/exercises/rectangles/README.md @@ -79,16 +79,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest rectangles_test.py` -(`py.test rectangles_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest rectangles_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest rectangles_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test rectangles_test.py` | +| 3.3+ | `pytest rectangles_test.py` | +| 2.7, 3.3+ | `python -m pytest rectangles_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/reverse-string/README.md b/exercises/reverse-string/README.md index 1bfd42e882..b025f4f4c3 100644 --- a/exercises/reverse-string/README.md +++ b/exercises/reverse-string/README.md @@ -22,16 +22,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest reverse_string_test.py` -(`py.test reverse_string_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest reverse_string_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest reverse_string_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test reverse_string_test.py` | +| 3.3+ | `pytest reverse_string_test.py` | +| 2.7, 3.3+ | `python -m pytest reverse_string_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/rna-transcription/README.md b/exercises/rna-transcription/README.md index 922ed7aeae..9e60bdf03f 100644 --- a/exercises/rna-transcription/README.md +++ b/exercises/rna-transcription/README.md @@ -37,16 +37,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest rna_transcription_test.py` -(`py.test rna_transcription_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest rna_transcription_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest rna_transcription_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test rna_transcription_test.py` | +| 3.3+ | `pytest rna_transcription_test.py` | +| 2.7, 3.3+ | `python -m pytest rna_transcription_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/robot-name/README.md b/exercises/robot-name/README.md index c08ce44b51..81535135bb 100644 --- a/exercises/robot-name/README.md +++ b/exercises/robot-name/README.md @@ -31,16 +31,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest robot_name_test.py` -(`py.test robot_name_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest robot_name_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest robot_name_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test robot_name_test.py` | +| 3.3+ | `pytest robot_name_test.py` | +| 2.7, 3.3+ | `python -m pytest robot_name_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/robot-simulator/README.md b/exercises/robot-simulator/README.md index 15684087a7..daac9a1cbd 100644 --- a/exercises/robot-simulator/README.md +++ b/exercises/robot-simulator/README.md @@ -43,16 +43,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest robot_simulator_test.py` -(`py.test robot_simulator_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest robot_simulator_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest robot_simulator_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test robot_simulator_test.py` | +| 3.3+ | `pytest robot_simulator_test.py` | +| 2.7, 3.3+ | `python -m pytest robot_simulator_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/roman-numerals/README.md b/exercises/roman-numerals/README.md index fbd76d681f..9e54db42be 100644 --- a/exercises/roman-numerals/README.md +++ b/exercises/roman-numerals/README.md @@ -58,16 +58,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest roman_numerals_test.py` -(`py.test roman_numerals_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest roman_numerals_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest roman_numerals_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test roman_numerals_test.py` | +| 3.3+ | `pytest roman_numerals_test.py` | +| 2.7, 3.3+ | `python -m pytest roman_numerals_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/rotational-cipher/README.md b/exercises/rotational-cipher/README.md index b5b14caee2..a49447528d 100644 --- a/exercises/rotational-cipher/README.md +++ b/exercises/rotational-cipher/README.md @@ -46,16 +46,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest rotational_cipher_test.py` -(`py.test rotational_cipher_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest rotational_cipher_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest rotational_cipher_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test rotational_cipher_test.py` | +| 3.3+ | `pytest rotational_cipher_test.py` | +| 2.7, 3.3+ | `python -m pytest rotational_cipher_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/run-length-encoding/README.md b/exercises/run-length-encoding/README.md index 6f7f4cc684..884bf67a1c 100644 --- a/exercises/run-length-encoding/README.md +++ b/exercises/run-length-encoding/README.md @@ -39,16 +39,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest run_length_encoding_test.py` -(`py.test run_length_encoding_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest run_length_encoding_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest run_length_encoding_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test run_length_encoding_test.py` | +| 3.3+ | `pytest run_length_encoding_test.py` | +| 2.7, 3.3+ | `python -m pytest run_length_encoding_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/saddle-points/README.md b/exercises/saddle-points/README.md index fc35f1b058..c252219b9b 100644 --- a/exercises/saddle-points/README.md +++ b/exercises/saddle-points/README.md @@ -42,16 +42,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest saddle_points_test.py` -(`py.test saddle_points_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest saddle_points_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest saddle_points_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test saddle_points_test.py` | +| 3.3+ | `pytest saddle_points_test.py` | +| 2.7, 3.3+ | `python -m pytest saddle_points_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/say/README.md b/exercises/say/README.md index 923991139e..b182239fbb 100644 --- a/exercises/say/README.md +++ b/exercises/say/README.md @@ -78,16 +78,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest say_test.py` -(`py.test say_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest say_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest say_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test say_test.py` | +| 3.3+ | `pytest say_test.py` | +| 2.7, 3.3+ | `python -m pytest say_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/scale-generator/README.md b/exercises/scale-generator/README.md index 6f09191745..94b6b5fddb 100644 --- a/exercises/scale-generator/README.md +++ b/exercises/scale-generator/README.md @@ -71,16 +71,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest scale_generator_test.py` -(`py.test scale_generator_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest scale_generator_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest scale_generator_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test scale_generator_test.py` | +| 3.3+ | `pytest scale_generator_test.py` | +| 2.7, 3.3+ | `python -m pytest scale_generator_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/scrabble-score/README.md b/exercises/scrabble-score/README.md index 7886f2752b..4367cdfd00 100644 --- a/exercises/scrabble-score/README.md +++ b/exercises/scrabble-score/README.md @@ -55,16 +55,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest scrabble_score_test.py` -(`py.test scrabble_score_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest scrabble_score_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest scrabble_score_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test scrabble_score_test.py` | +| 3.3+ | `pytest scrabble_score_test.py` | +| 2.7, 3.3+ | `python -m pytest scrabble_score_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/secret-handshake/README.md b/exercises/secret-handshake/README.md index d7edb5bf04..9f2868e1f6 100644 --- a/exercises/secret-handshake/README.md +++ b/exercises/secret-handshake/README.md @@ -44,16 +44,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest secret_handshake_test.py` -(`py.test secret_handshake_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest secret_handshake_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest secret_handshake_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test secret_handshake_test.py` | +| 3.3+ | `pytest secret_handshake_test.py` | +| 2.7, 3.3+ | `python -m pytest secret_handshake_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/series/README.md b/exercises/series/README.md index 5b425a0551..68d2fd7015 100644 --- a/exercises/series/README.md +++ b/exercises/series/README.md @@ -36,16 +36,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest series_test.py` -(`py.test series_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest series_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest series_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test series_test.py` | +| 3.3+ | `pytest series_test.py` | +| 2.7, 3.3+ | `python -m pytest series_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/sieve/README.md b/exercises/sieve/README.md index 9ad538eec1..d9c40dc83d 100644 --- a/exercises/sieve/README.md +++ b/exercises/sieve/README.md @@ -43,16 +43,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest sieve_test.py` -(`py.test sieve_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest sieve_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest sieve_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test sieve_test.py` | +| 3.3+ | `pytest sieve_test.py` | +| 2.7, 3.3+ | `python -m pytest sieve_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/simple-cipher/README.md b/exercises/simple-cipher/README.md index ada5d5a4c8..75796546cc 100644 --- a/exercises/simple-cipher/README.md +++ b/exercises/simple-cipher/README.md @@ -115,16 +115,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest simple_cipher_test.py` -(`py.test simple_cipher_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest simple_cipher_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest simple_cipher_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test simple_cipher_test.py` | +| 3.3+ | `pytest simple_cipher_test.py` | +| 2.7, 3.3+ | `python -m pytest simple_cipher_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/simple-linked-list/README.md b/exercises/simple-linked-list/README.md index e3fd10270a..79b90adc8f 100644 --- a/exercises/simple-linked-list/README.md +++ b/exercises/simple-linked-list/README.md @@ -49,16 +49,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest simple_linked_list_test.py` -(`py.test simple_linked_list_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest simple_linked_list_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest simple_linked_list_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test simple_linked_list_test.py` | +| 3.3+ | `pytest simple_linked_list_test.py` | +| 2.7, 3.3+ | `python -m pytest simple_linked_list_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/space-age/README.md b/exercises/space-age/README.md index 011bbf78c5..d7838b1eb2 100644 --- a/exercises/space-age/README.md +++ b/exercises/space-age/README.md @@ -33,16 +33,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest space_age_test.py` -(`py.test space_age_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest space_age_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest space_age_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test space_age_test.py` | +| 3.3+ | `pytest space_age_test.py` | +| 2.7, 3.3+ | `python -m pytest space_age_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/spiral-matrix/README.md b/exercises/spiral-matrix/README.md index e740395d68..35b0a0dee6 100644 --- a/exercises/spiral-matrix/README.md +++ b/exercises/spiral-matrix/README.md @@ -39,16 +39,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest spiral_matrix_test.py` -(`py.test spiral_matrix_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest spiral_matrix_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest spiral_matrix_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test spiral_matrix_test.py` | +| 3.3+ | `pytest spiral_matrix_test.py` | +| 2.7, 3.3+ | `python -m pytest spiral_matrix_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/strain/README.md b/exercises/strain/README.md index 1428592313..f2119d9263 100644 --- a/exercises/strain/README.md +++ b/exercises/strain/README.md @@ -49,16 +49,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest strain_test.py` -(`py.test strain_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest strain_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest strain_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test strain_test.py` | +| 3.3+ | `pytest strain_test.py` | +| 2.7, 3.3+ | `python -m pytest strain_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/sublist/README.md b/exercises/sublist/README.md index 99cb54b418..22bbf80ee2 100644 --- a/exercises/sublist/README.md +++ b/exercises/sublist/README.md @@ -33,16 +33,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest sublist_test.py` -(`py.test sublist_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest sublist_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest sublist_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test sublist_test.py` | +| 3.3+ | `pytest sublist_test.py` | +| 2.7, 3.3+ | `python -m pytest sublist_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/sum-of-multiples/README.md b/exercises/sum-of-multiples/README.md index 367649ae52..012af8689c 100644 --- a/exercises/sum-of-multiples/README.md +++ b/exercises/sum-of-multiples/README.md @@ -24,16 +24,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest sum_of_multiples_test.py` -(`py.test sum_of_multiples_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest sum_of_multiples_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest sum_of_multiples_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test sum_of_multiples_test.py` | +| 3.3+ | `pytest sum_of_multiples_test.py` | +| 2.7, 3.3+ | `python -m pytest sum_of_multiples_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/tournament/README.md b/exercises/tournament/README.md index 96d4673092..9d4962da98 100644 --- a/exercises/tournament/README.md +++ b/exercises/tournament/README.md @@ -80,16 +80,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest tournament_test.py` -(`py.test tournament_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest tournament_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest tournament_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test tournament_test.py` | +| 3.3+ | `pytest tournament_test.py` | +| 2.7, 3.3+ | `python -m pytest tournament_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/transpose/README.md b/exercises/transpose/README.md index faa0598d0c..c6900d1d8d 100644 --- a/exercises/transpose/README.md +++ b/exercises/transpose/README.md @@ -74,16 +74,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest transpose_test.py` -(`py.test transpose_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest transpose_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest transpose_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test transpose_test.py` | +| 3.3+ | `pytest transpose_test.py` | +| 2.7, 3.3+ | `python -m pytest transpose_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/tree-building/README.md b/exercises/tree-building/README.md index a90c0b0c1c..0cdd7af4f1 100644 --- a/exercises/tree-building/README.md +++ b/exercises/tree-building/README.md @@ -42,16 +42,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest tree_building_test.py` -(`py.test tree_building_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest tree_building_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest tree_building_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test tree_building_test.py` | +| 3.3+ | `pytest tree_building_test.py` | +| 2.7, 3.3+ | `python -m pytest tree_building_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/triangle/README.md b/exercises/triangle/README.md index 134d15d562..691981e608 100644 --- a/exercises/triangle/README.md +++ b/exercises/triangle/README.md @@ -38,16 +38,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest triangle_test.py` -(`py.test triangle_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest triangle_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest triangle_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test triangle_test.py` | +| 3.3+ | `pytest triangle_test.py` | +| 2.7, 3.3+ | `python -m pytest triangle_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/trinary/README.md b/exercises/trinary/README.md index 69c49a2021..179e9caf17 100644 --- a/exercises/trinary/README.md +++ b/exercises/trinary/README.md @@ -37,16 +37,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest trinary_test.py` -(`py.test trinary_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest trinary_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest trinary_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test trinary_test.py` | +| 3.3+ | `pytest trinary_test.py` | +| 2.7, 3.3+ | `python -m pytest trinary_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/twelve-days/README.md b/exercises/twelve-days/README.md index 2083504369..1fa5e93ec7 100644 --- a/exercises/twelve-days/README.md +++ b/exercises/twelve-days/README.md @@ -44,16 +44,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest twelve_days_test.py` -(`py.test twelve_days_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest twelve_days_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest twelve_days_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test twelve_days_test.py` | +| 3.3+ | `pytest twelve_days_test.py` | +| 2.7, 3.3+ | `python -m pytest twelve_days_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/two-bucket/README.md b/exercises/two-bucket/README.md index b1684ca075..6d89a8bc06 100644 --- a/exercises/two-bucket/README.md +++ b/exercises/two-bucket/README.md @@ -45,16 +45,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest two_bucket_test.py` -(`py.test two_bucket_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest two_bucket_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest two_bucket_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test two_bucket_test.py` | +| 3.3+ | `pytest two_bucket_test.py` | +| 2.7, 3.3+ | `python -m pytest two_bucket_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/two-fer/README.md b/exercises/two-fer/README.md index d32c43de48..69eca73c81 100644 --- a/exercises/two-fer/README.md +++ b/exercises/two-fer/README.md @@ -28,16 +28,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest two_fer_test.py` -(`py.test two_fer_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest two_fer_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest two_fer_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test two_fer_test.py` | +| 3.3+ | `pytest two_fer_test.py` | +| 2.7, 3.3+ | `python -m pytest two_fer_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/variable-length-quantity/README.md b/exercises/variable-length-quantity/README.md index af54bfa220..28e0de4269 100644 --- a/exercises/variable-length-quantity/README.md +++ b/exercises/variable-length-quantity/README.md @@ -47,16 +47,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest variable_length_quantity_test.py` -(`py.test variable_length_quantity_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest variable_length_quantity_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest variable_length_quantity_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test variable_length_quantity_test.py` | +| 3.3+ | `pytest variable_length_quantity_test.py` | +| 2.7, 3.3+ | `python -m pytest variable_length_quantity_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/word-count/README.md b/exercises/word-count/README.md index 6249d9094a..3b64841627 100644 --- a/exercises/word-count/README.md +++ b/exercises/word-count/README.md @@ -27,16 +27,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest word_count_test.py` -(`py.test word_count_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest word_count_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest word_count_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test word_count_test.py` | +| 3.3+ | `pytest word_count_test.py` | +| 2.7, 3.3+ | `python -m pytest word_count_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/word-search/README.md b/exercises/word-search/README.md index bd0787ce22..d8a61c0ab7 100644 --- a/exercises/word-search/README.md +++ b/exercises/word-search/README.md @@ -42,16 +42,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest word_search_test.py` -(`py.test word_search_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest word_search_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest word_search_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test word_search_test.py` | +| 3.3+ | `pytest word_search_test.py` | +| 2.7, 3.3+ | `python -m pytest word_search_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/wordy/README.md b/exercises/wordy/README.md index b6e8933361..2d52313d69 100644 --- a/exercises/wordy/README.md +++ b/exercises/wordy/README.md @@ -67,16 +67,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest wordy_test.py` -(`py.test wordy_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest wordy_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest wordy_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test wordy_test.py` | +| 3.3+ | `pytest wordy_test.py` | +| 2.7, 3.3+ | `python -m pytest wordy_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/zebra-puzzle/README.md b/exercises/zebra-puzzle/README.md index 320e9e9e16..a9b676190f 100644 --- a/exercises/zebra-puzzle/README.md +++ b/exercises/zebra-puzzle/README.md @@ -41,16 +41,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest zebra_puzzle_test.py` -(`py.test zebra_puzzle_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest zebra_puzzle_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest zebra_puzzle_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test zebra_puzzle_test.py` | +| 3.3+ | `pytest zebra_puzzle_test.py` | +| 2.7, 3.3+ | `python -m pytest zebra_puzzle_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises diff --git a/exercises/zipper/README.md b/exercises/zipper/README.md index 6c6b65c6f8..9964994968 100644 --- a/exercises/zipper/README.md +++ b/exercises/zipper/README.md @@ -43,16 +43,33 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests run the command `python -m pytest zipper_test.py` -(`py.test zipper_test.py` for Python 2; `pytest _test.py` for Python 3). Or run it with -`-v` to be more verbose like this: `pytest zipper_test.py`. Using the -`-x` flag will cause the test to fail at the first failure instead of it -trying all cases before exiting. - -To run this exercises's tests for example, run this command: -``` -python -m pytest zipper_test.py -v -``` +To run the tests, run the appropriate command below: + +| Python Version | Command | +| --- | --- | +| 2.7 | `py.test zipper_test.py` | +| 3.3+ | `pytest zipper_test.py` | +| 2.7, 3.3+ | `python -m pytest zipper_test.py` | + + + + + + + + + + + + + + + + + +
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+ +For other options, see `python -m pytest -h` ## Submitting Exercises From 0f026392a97c794b6968996603595f6c852c90bf Mon Sep 17 00:00:00 2001 From: Corey McCandless Date: Fri, 23 Feb 2018 13:43:36 -0600 Subject: [PATCH 4/4] -switch to a plaintext-readable format -add link explaining py.test vs pytest --- config/exercise_readme.go.tmpl | 33 +++++------------ exercises/accumulate/README.md | 37 ++++++------------- exercises/acronym/README.md | 37 ++++++------------- exercises/all-your-base/README.md | 37 ++++++------------- exercises/allergies/README.md | 37 ++++++------------- exercises/alphametics/README.md | 37 ++++++------------- exercises/anagram/README.md | 37 ++++++------------- exercises/armstrong-numbers/README.md | 37 ++++++------------- exercises/atbash-cipher/README.md | 37 ++++++------------- exercises/beer-song/README.md | 37 ++++++------------- exercises/binary-search-tree/README.md | 37 ++++++------------- exercises/binary-search/README.md | 37 ++++++------------- exercises/binary/README.md | 37 ++++++------------- exercises/bob/README.md | 37 ++++++------------- exercises/book-store/README.md | 37 ++++++------------- exercises/bowling/README.md | 37 ++++++------------- exercises/bracket-push/README.md | 37 ++++++------------- exercises/change/README.md | 37 ++++++------------- exercises/circular-buffer/README.md | 37 ++++++------------- exercises/clock/README.md | 37 ++++++------------- exercises/collatz-conjecture/README.md | 37 ++++++------------- exercises/complex-numbers/README.md | 37 ++++++------------- exercises/connect/README.md | 37 ++++++------------- exercises/crypto-square/README.md | 37 ++++++------------- exercises/custom-set/README.md | 37 ++++++------------- exercises/diamond/README.md | 37 ++++++------------- exercises/difference-of-squares/README.md | 37 ++++++------------- exercises/diffie-hellman/README.md | 37 ++++++------------- exercises/dominoes/README.md | 37 ++++++------------- exercises/dot-dsl/README.md | 37 ++++++------------- exercises/error-handling/README.md | 37 ++++++------------- exercises/etl/README.md | 37 ++++++------------- exercises/flatten-array/README.md | 37 ++++++------------- exercises/food-chain/README.md | 37 ++++++------------- exercises/forth/README.md | 37 ++++++------------- exercises/gigasecond/README.md | 37 ++++++------------- exercises/go-counting/README.md | 37 ++++++------------- exercises/grade-school/README.md | 37 ++++++------------- exercises/grains/README.md | 37 ++++++------------- exercises/grep/README.md | 37 ++++++------------- exercises/hamming/README.md | 37 ++++++------------- exercises/hello-world/README.md | 37 ++++++------------- exercises/hexadecimal/README.md | 37 ++++++------------- exercises/house/README.md | 37 ++++++------------- exercises/isbn-verifier/README.md | 37 ++++++------------- exercises/isogram/README.md | 37 ++++++------------- exercises/kindergarten-garden/README.md | 37 ++++++------------- exercises/largest-series-product/README.md | 37 ++++++------------- exercises/leap/README.md | 37 ++++++------------- exercises/linked-list/README.md | 37 ++++++------------- exercises/list-ops/README.md | 37 ++++++------------- exercises/luhn/README.md | 37 ++++++------------- exercises/markdown/README.md | 37 ++++++------------- exercises/matrix/README.md | 37 ++++++------------- exercises/meetup/README.md | 37 ++++++------------- exercises/minesweeper/README.md | 37 ++++++------------- exercises/nth-prime/README.md | 37 ++++++------------- exercises/nucleotide-count/README.md | 37 ++++++------------- exercises/ocr-numbers/README.md | 37 ++++++------------- exercises/octal/README.md | 37 ++++++------------- exercises/palindrome-products/README.md | 37 ++++++------------- exercises/pangram/README.md | 37 ++++++------------- exercises/parallel-letter-frequency/README.md | 37 ++++++------------- exercises/pascals-triangle/README.md | 37 ++++++------------- exercises/perfect-numbers/README.md | 37 ++++++------------- exercises/phone-number/README.md | 37 ++++++------------- exercises/pig-latin/README.md | 37 ++++++------------- exercises/point-mutations/README.md | 37 ++++++------------- exercises/poker/README.md | 37 ++++++------------- exercises/pov/README.md | 37 ++++++------------- exercises/prime-factors/README.md | 37 ++++++------------- exercises/protein-translation/README.md | 37 ++++++------------- exercises/proverb/README.md | 37 ++++++------------- exercises/pythagorean-triplet/README.md | 37 ++++++------------- exercises/queen-attack/README.md | 37 ++++++------------- exercises/rail-fence-cipher/README.md | 37 ++++++------------- exercises/raindrops/README.md | 37 ++++++------------- exercises/react/README.md | 37 ++++++------------- exercises/rectangles/README.md | 37 ++++++------------- exercises/reverse-string/README.md | 37 ++++++------------- exercises/rna-transcription/README.md | 37 ++++++------------- exercises/robot-name/README.md | 37 ++++++------------- exercises/robot-simulator/README.md | 37 ++++++------------- exercises/roman-numerals/README.md | 37 ++++++------------- exercises/rotational-cipher/README.md | 37 ++++++------------- exercises/run-length-encoding/README.md | 37 ++++++------------- exercises/saddle-points/README.md | 37 ++++++------------- exercises/say/README.md | 37 ++++++------------- exercises/scale-generator/README.md | 37 ++++++------------- exercises/scrabble-score/README.md | 37 ++++++------------- exercises/secret-handshake/README.md | 37 ++++++------------- exercises/series/README.md | 37 ++++++------------- exercises/sieve/README.md | 37 ++++++------------- exercises/simple-cipher/README.md | 37 ++++++------------- exercises/simple-linked-list/README.md | 37 ++++++------------- exercises/space-age/README.md | 37 ++++++------------- exercises/spiral-matrix/README.md | 37 ++++++------------- exercises/strain/README.md | 37 ++++++------------- exercises/sublist/README.md | 37 ++++++------------- exercises/sum-of-multiples/README.md | 37 ++++++------------- exercises/tournament/README.md | 37 ++++++------------- exercises/transpose/README.md | 37 ++++++------------- exercises/tree-building/README.md | 37 ++++++------------- exercises/triangle/README.md | 37 ++++++------------- exercises/trinary/README.md | 37 ++++++------------- exercises/twelve-days/README.md | 37 ++++++------------- exercises/two-bucket/README.md | 37 ++++++------------- exercises/two-fer/README.md | 37 ++++++------------- exercises/variable-length-quantity/README.md | 37 ++++++------------- exercises/word-count/README.md | 37 ++++++------------- exercises/word-search/README.md | 37 ++++++------------- exercises/wordy/README.md | 37 ++++++------------- exercises/zebra-puzzle/README.md | 37 ++++++------------- exercises/zipper/README.md | 37 ++++++------------- 114 files changed, 1366 insertions(+), 2848 deletions(-) diff --git a/config/exercise_readme.go.tmpl b/config/exercise_readme.go.tmpl index 590e8e0669..723fda5b7b 100644 --- a/config/exercise_readme.go.tmpl +++ b/config/exercise_readme.go.tmpl @@ -20,31 +20,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: +To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)): -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test {{ .Spec.SnakeCaseName }}_test.py` | -| 3.3+ | `pytest {{ .Spec.SnakeCaseName }}_test.py` | -| 2.7, 3.3+ | `python -m pytest {{ .Spec.SnakeCaseName }}_test.py` | +- Python 2.7: `py.test {{ .Spec.SnakeCaseName }}_test.py` +- Python 3.3+: `pytest {{ .Spec.SnakeCaseName }}_test.py` - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other tests
+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` diff --git a/exercises/accumulate/README.md b/exercises/accumulate/README.md index 7b11379bd9..9cb4b9230d 100644 --- a/exercises/accumulate/README.md +++ b/exercises/accumulate/README.md @@ -41,31 +41,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test accumulate_test.py` | -| 3.3+ | `pytest accumulate_test.py` | -| 2.7, 3.3+ | `python -m pytest accumulate_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/acronym/README.md b/exercises/acronym/README.md index 4019cc9a38..489e32c2b2 100644 --- a/exercises/acronym/README.md +++ b/exercises/acronym/README.md @@ -23,31 +23,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test acronym_test.py` | -| 3.3+ | `pytest acronym_test.py` | -| 2.7, 3.3+ | `python -m pytest acronym_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/all-your-base/README.md b/exercises/all-your-base/README.md index 17e61a8fc5..6e721e7745 100644 --- a/exercises/all-your-base/README.md +++ b/exercises/all-your-base/README.md @@ -47,31 +47,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test all_your_base_test.py` | -| 3.3+ | `pytest all_your_base_test.py` | -| 2.7, 3.3+ | `python -m pytest all_your_base_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/allergies/README.md b/exercises/allergies/README.md index 8ad7308660..752f374979 100644 --- a/exercises/allergies/README.md +++ b/exercises/allergies/README.md @@ -45,31 +45,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test allergies_test.py` | -| 3.3+ | `pytest allergies_test.py` | -| 2.7, 3.3+ | `python -m pytest allergies_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/alphametics/README.md b/exercises/alphametics/README.md index cb6b554b2e..622b9a493e 100644 --- a/exercises/alphametics/README.md +++ b/exercises/alphametics/README.md @@ -47,31 +47,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test alphametics_test.py` | -| 3.3+ | `pytest alphametics_test.py` | -| 2.7, 3.3+ | `python -m pytest alphametics_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/anagram/README.md b/exercises/anagram/README.md index 4b9ad91cef..dafa0da5de 100644 --- a/exercises/anagram/README.md +++ b/exercises/anagram/README.md @@ -22,31 +22,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test anagram_test.py` | -| 3.3+ | `pytest anagram_test.py` | -| 2.7, 3.3+ | `python -m pytest anagram_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/armstrong-numbers/README.md b/exercises/armstrong-numbers/README.md index 601860c01e..585d1fdaaf 100644 --- a/exercises/armstrong-numbers/README.md +++ b/exercises/armstrong-numbers/README.md @@ -27,31 +27,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test armstrong_numbers_test.py` | -| 3.3+ | `pytest armstrong_numbers_test.py` | -| 2.7, 3.3+ | `python -m pytest armstrong_numbers_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/atbash-cipher/README.md b/exercises/atbash-cipher/README.md index 34d7ced843..c83007455b 100644 --- a/exercises/atbash-cipher/README.md +++ b/exercises/atbash-cipher/README.md @@ -44,31 +44,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test atbash_cipher_test.py` | -| 3.3+ | `pytest atbash_cipher_test.py` | -| 2.7, 3.3+ | `python -m pytest atbash_cipher_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/beer-song/README.md b/exercises/beer-song/README.md index c1779b66b6..c6e7bc03d3 100644 --- a/exercises/beer-song/README.md +++ b/exercises/beer-song/README.md @@ -336,31 +336,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test beer_song_test.py` | -| 3.3+ | `pytest beer_song_test.py` | -| 2.7, 3.3+ | `python -m pytest beer_song_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/binary-search-tree/README.md b/exercises/binary-search-tree/README.md index 389c3d401b..2fb3d55155 100644 --- a/exercises/binary-search-tree/README.md +++ b/exercises/binary-search-tree/README.md @@ -69,31 +69,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test binary_search_tree_test.py` | -| 3.3+ | `pytest binary_search_tree_test.py` | -| 2.7, 3.3+ | `python -m pytest binary_search_tree_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/binary-search/README.md b/exercises/binary-search/README.md index dbd9284edc..34948c18bf 100644 --- a/exercises/binary-search/README.md +++ b/exercises/binary-search/README.md @@ -50,31 +50,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test binary_search_test.py` | -| 3.3+ | `pytest binary_search_test.py` | -| 2.7, 3.3+ | `python -m pytest binary_search_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/binary/README.md b/exercises/binary/README.md index 33201d37c1..66c1ba0503 100644 --- a/exercises/binary/README.md +++ b/exercises/binary/README.md @@ -46,31 +46,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test binary_test.py` | -| 3.3+ | `pytest binary_test.py` | -| 2.7, 3.3+ | `python -m pytest binary_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/bob/README.md b/exercises/bob/README.md index fa3206a71d..a7073834c2 100644 --- a/exercises/bob/README.md +++ b/exercises/bob/README.md @@ -29,31 +29,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test bob_test.py` | -| 3.3+ | `pytest bob_test.py` | -| 2.7, 3.3+ | `python -m pytest bob_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/book-store/README.md b/exercises/book-store/README.md index 5b5f8b5d55..c15756ace7 100644 --- a/exercises/book-store/README.md +++ b/exercises/book-store/README.md @@ -83,31 +83,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test book_store_test.py` | -| 3.3+ | `pytest book_store_test.py` | -| 2.7, 3.3+ | `python -m pytest book_store_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/bowling/README.md b/exercises/bowling/README.md index caf4eab738..2d6f26750d 100644 --- a/exercises/bowling/README.md +++ b/exercises/bowling/README.md @@ -76,31 +76,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test bowling_test.py` | -| 3.3+ | `pytest bowling_test.py` | -| 2.7, 3.3+ | `python -m pytest bowling_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/bracket-push/README.md b/exercises/bracket-push/README.md index 64e4a7c371..8d42efbc20 100644 --- a/exercises/bracket-push/README.md +++ b/exercises/bracket-push/README.md @@ -19,31 +19,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test bracket_push_test.py` | -| 3.3+ | `pytest bracket_push_test.py` | -| 2.7, 3.3+ | `python -m pytest bracket_push_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/change/README.md b/exercises/change/README.md index 2cc4525c16..a1613b4cdb 100644 --- a/exercises/change/README.md +++ b/exercises/change/README.md @@ -32,31 +32,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test change_test.py` | -| 3.3+ | `pytest change_test.py` | -| 2.7, 3.3+ | `python -m pytest change_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/circular-buffer/README.md b/exercises/circular-buffer/README.md index 41804fc213..e65b341eda 100644 --- a/exercises/circular-buffer/README.md +++ b/exercises/circular-buffer/README.md @@ -66,31 +66,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test circular_buffer_test.py` | -| 3.3+ | `pytest circular_buffer_test.py` | -| 2.7, 3.3+ | `python -m pytest circular_buffer_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/clock/README.md b/exercises/clock/README.md index e4d41d5c26..d1c1ab655d 100644 --- a/exercises/clock/README.md +++ b/exercises/clock/README.md @@ -22,31 +22,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test clock_test.py` | -| 3.3+ | `pytest clock_test.py` | -| 2.7, 3.3+ | `python -m pytest clock_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/collatz-conjecture/README.md b/exercises/collatz-conjecture/README.md index d3c2f012d8..4d879b747b 100644 --- a/exercises/collatz-conjecture/README.md +++ b/exercises/collatz-conjecture/README.md @@ -47,31 +47,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test collatz_conjecture_test.py` | -| 3.3+ | `pytest collatz_conjecture_test.py` | -| 2.7, 3.3+ | `python -m pytest collatz_conjecture_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/complex-numbers/README.md b/exercises/complex-numbers/README.md index 2c6d206dc8..53d4a15350 100644 --- a/exercises/complex-numbers/README.md +++ b/exercises/complex-numbers/README.md @@ -52,31 +52,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test complex_numbers_test.py` | -| 3.3+ | `pytest complex_numbers_test.py` | -| 2.7, 3.3+ | `python -m pytest complex_numbers_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/connect/README.md b/exercises/connect/README.md index 19336376c6..9bc29c0fa6 100644 --- a/exercises/connect/README.md +++ b/exercises/connect/README.md @@ -46,31 +46,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test connect_test.py` | -| 3.3+ | `pytest connect_test.py` | -| 2.7, 3.3+ | `python -m pytest connect_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/crypto-square/README.md b/exercises/crypto-square/README.md index f29a161576..acc8dfbd73 100644 --- a/exercises/crypto-square/README.md +++ b/exercises/crypto-square/README.md @@ -85,31 +85,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test crypto_square_test.py` | -| 3.3+ | `pytest crypto_square_test.py` | -| 2.7, 3.3+ | `python -m pytest crypto_square_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/custom-set/README.md b/exercises/custom-set/README.md index 2f18c035a9..18ce3255d6 100644 --- a/exercises/custom-set/README.md +++ b/exercises/custom-set/README.md @@ -23,31 +23,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test custom_set_test.py` | -| 3.3+ | `pytest custom_set_test.py` | -| 2.7, 3.3+ | `python -m pytest custom_set_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/diamond/README.md b/exercises/diamond/README.md index 998cc309b0..05ef15e613 100644 --- a/exercises/diamond/README.md +++ b/exercises/diamond/README.md @@ -68,31 +68,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test diamond_test.py` | -| 3.3+ | `pytest diamond_test.py` | -| 2.7, 3.3+ | `python -m pytest diamond_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/difference-of-squares/README.md b/exercises/difference-of-squares/README.md index 6ccad72165..d8f8a3965e 100644 --- a/exercises/difference-of-squares/README.md +++ b/exercises/difference-of-squares/README.md @@ -28,31 +28,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test difference_of_squares_test.py` | -| 3.3+ | `pytest difference_of_squares_test.py` | -| 2.7, 3.3+ | `python -m pytest difference_of_squares_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/diffie-hellman/README.md b/exercises/diffie-hellman/README.md index 25b2a5a0dd..9110cf722e 100644 --- a/exercises/diffie-hellman/README.md +++ b/exercises/diffie-hellman/README.md @@ -70,31 +70,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test diffie_hellman_test.py` | -| 3.3+ | `pytest diffie_hellman_test.py` | -| 2.7, 3.3+ | `python -m pytest diffie_hellman_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/dominoes/README.md b/exercises/dominoes/README.md index 3e3db7825e..d076968c34 100644 --- a/exercises/dominoes/README.md +++ b/exercises/dominoes/README.md @@ -30,31 +30,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test dominoes_test.py` | -| 3.3+ | `pytest dominoes_test.py` | -| 2.7, 3.3+ | `python -m pytest dominoes_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/dot-dsl/README.md b/exercises/dot-dsl/README.md index 1aebb9a966..1aa24b0c4b 100644 --- a/exercises/dot-dsl/README.md +++ b/exercises/dot-dsl/README.md @@ -56,31 +56,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test dot_dsl_test.py` | -| 3.3+ | `pytest dot_dsl_test.py` | -| 2.7, 3.3+ | `python -m pytest dot_dsl_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/error-handling/README.md b/exercises/error-handling/README.md index e13a4b166b..6a5c29e7d5 100644 --- a/exercises/error-handling/README.md +++ b/exercises/error-handling/README.md @@ -35,31 +35,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test error_handling_test.py` | -| 3.3+ | `pytest error_handling_test.py` | -| 2.7, 3.3+ | `python -m pytest error_handling_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/etl/README.md b/exercises/etl/README.md index 3f741ace93..149737ef91 100644 --- a/exercises/etl/README.md +++ b/exercises/etl/README.md @@ -62,31 +62,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test etl_test.py` | -| 3.3+ | `pytest etl_test.py` | -| 2.7, 3.3+ | `python -m pytest etl_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/flatten-array/README.md b/exercises/flatten-array/README.md index e3467d9ef0..05203da96b 100644 --- a/exercises/flatten-array/README.md +++ b/exercises/flatten-array/README.md @@ -26,31 +26,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test flatten_array_test.py` | -| 3.3+ | `pytest flatten_array_test.py` | -| 2.7, 3.3+ | `python -m pytest flatten_array_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/food-chain/README.md b/exercises/food-chain/README.md index 6d975349b8..5edf552ddd 100644 --- a/exercises/food-chain/README.md +++ b/exercises/food-chain/README.md @@ -79,31 +79,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test food_chain_test.py` | -| 3.3+ | `pytest food_chain_test.py` | -| 2.7, 3.3+ | `python -m pytest food_chain_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/forth/README.md b/exercises/forth/README.md index 82c3b8de2f..af608c4d72 100644 --- a/exercises/forth/README.md +++ b/exercises/forth/README.md @@ -41,31 +41,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test forth_test.py` | -| 3.3+ | `pytest forth_test.py` | -| 2.7, 3.3+ | `python -m pytest forth_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/gigasecond/README.md b/exercises/gigasecond/README.md index 35b01ada6d..50c7c7b760 100644 --- a/exercises/gigasecond/README.md +++ b/exercises/gigasecond/README.md @@ -20,31 +20,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test gigasecond_test.py` | -| 3.3+ | `pytest gigasecond_test.py` | -| 2.7, 3.3+ | `python -m pytest gigasecond_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/go-counting/README.md b/exercises/go-counting/README.md index 3d508effcf..857528ea46 100644 --- a/exercises/go-counting/README.md +++ b/exercises/go-counting/README.md @@ -49,31 +49,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test go_counting_test.py` | -| 3.3+ | `pytest go_counting_test.py` | -| 2.7, 3.3+ | `python -m pytest go_counting_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/grade-school/README.md b/exercises/grade-school/README.md index 2c877f9f3b..9ede61a59e 100644 --- a/exercises/grade-school/README.md +++ b/exercises/grade-school/README.md @@ -50,31 +50,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test grade_school_test.py` | -| 3.3+ | `pytest grade_school_test.py` | -| 2.7, 3.3+ | `python -m pytest grade_school_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/grains/README.md b/exercises/grains/README.md index a1439981ee..4fc98b83f6 100644 --- a/exercises/grains/README.md +++ b/exercises/grains/README.md @@ -42,31 +42,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test grains_test.py` | -| 3.3+ | `pytest grains_test.py` | -| 2.7, 3.3+ | `python -m pytest grains_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/grep/README.md b/exercises/grep/README.md index 1ea0999132..954e53edd5 100644 --- a/exercises/grep/README.md +++ b/exercises/grep/README.md @@ -80,31 +80,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test grep_test.py` | -| 3.3+ | `pytest grep_test.py` | -| 2.7, 3.3+ | `python -m pytest grep_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/hamming/README.md b/exercises/hamming/README.md index fca64c1f5d..27566f7ebd 100644 --- a/exercises/hamming/README.md +++ b/exercises/hamming/README.md @@ -51,31 +51,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test hamming_test.py` | -| 3.3+ | `pytest hamming_test.py` | -| 2.7, 3.3+ | `python -m pytest hamming_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/hello-world/README.md b/exercises/hello-world/README.md index c53adf3f0e..3e5b125b51 100644 --- a/exercises/hello-world/README.md +++ b/exercises/hello-world/README.md @@ -30,31 +30,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test hello_world_test.py` | -| 3.3+ | `pytest hello_world_test.py` | -| 2.7, 3.3+ | `python -m pytest hello_world_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/hexadecimal/README.md b/exercises/hexadecimal/README.md index f65d834de6..6cadd15079 100644 --- a/exercises/hexadecimal/README.md +++ b/exercises/hexadecimal/README.md @@ -23,31 +23,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test hexadecimal_test.py` | -| 3.3+ | `pytest hexadecimal_test.py` | -| 2.7, 3.3+ | `python -m pytest hexadecimal_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/house/README.md b/exercises/house/README.md index 7fffef593a..d7b709dd3b 100644 --- a/exercises/house/README.md +++ b/exercises/house/README.md @@ -121,31 +121,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test house_test.py` | -| 3.3+ | `pytest house_test.py` | -| 2.7, 3.3+ | `python -m pytest house_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/isbn-verifier/README.md b/exercises/isbn-verifier/README.md index 06ec9b8435..27809cd4c3 100644 --- a/exercises/isbn-verifier/README.md +++ b/exercises/isbn-verifier/README.md @@ -56,31 +56,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test isbn_verifier_test.py` | -| 3.3+ | `pytest isbn_verifier_test.py` | -| 2.7, 3.3+ | `python -m pytest isbn_verifier_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/isogram/README.md b/exercises/isogram/README.md index e8964f5b85..152480b7ab 100644 --- a/exercises/isogram/README.md +++ b/exercises/isogram/README.md @@ -29,31 +29,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test isogram_test.py` | -| 3.3+ | `pytest isogram_test.py` | -| 2.7, 3.3+ | `python -m pytest isogram_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/kindergarten-garden/README.md b/exercises/kindergarten-garden/README.md index b347245fe3..ba8a087a83 100644 --- a/exercises/kindergarten-garden/README.md +++ b/exercises/kindergarten-garden/README.md @@ -75,31 +75,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test kindergarten_garden_test.py` | -| 3.3+ | `pytest kindergarten_garden_test.py` | -| 2.7, 3.3+ | `python -m pytest kindergarten_garden_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/largest-series-product/README.md b/exercises/largest-series-product/README.md index d48ba014ca..36dcf1231f 100644 --- a/exercises/largest-series-product/README.md +++ b/exercises/largest-series-product/README.md @@ -29,31 +29,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test largest_series_product_test.py` | -| 3.3+ | `pytest largest_series_product_test.py` | -| 2.7, 3.3+ | `python -m pytest largest_series_product_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/leap/README.md b/exercises/leap/README.md index 2bc13b2266..0166070cd5 100644 --- a/exercises/leap/README.md +++ b/exercises/leap/README.md @@ -42,31 +42,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test leap_test.py` | -| 3.3+ | `pytest leap_test.py` | -| 2.7, 3.3+ | `python -m pytest leap_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/linked-list/README.md b/exercises/linked-list/README.md index 59d5ff4ab7..d3cd3b58b2 100644 --- a/exercises/linked-list/README.md +++ b/exercises/linked-list/README.md @@ -43,31 +43,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test linked_list_test.py` | -| 3.3+ | `pytest linked_list_test.py` | -| 2.7, 3.3+ | `python -m pytest linked_list_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/list-ops/README.md b/exercises/list-ops/README.md index 853ea01d67..acb0869ab4 100644 --- a/exercises/list-ops/README.md +++ b/exercises/list-ops/README.md @@ -22,31 +22,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test list_ops_test.py` | -| 3.3+ | `pytest list_ops_test.py` | -| 2.7, 3.3+ | `python -m pytest list_ops_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/luhn/README.md b/exercises/luhn/README.md index 41c73c450b..2ae8f805c4 100644 --- a/exercises/luhn/README.md +++ b/exercises/luhn/README.md @@ -80,31 +80,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test luhn_test.py` | -| 3.3+ | `pytest luhn_test.py` | -| 2.7, 3.3+ | `python -m pytest luhn_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/markdown/README.md b/exercises/markdown/README.md index c67ea7d0aa..5ecf15c0cc 100644 --- a/exercises/markdown/README.md +++ b/exercises/markdown/README.md @@ -30,31 +30,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test markdown_test.py` | -| 3.3+ | `pytest markdown_test.py` | -| 2.7, 3.3+ | `python -m pytest markdown_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/matrix/README.md b/exercises/matrix/README.md index e648d4b146..d71988ab63 100644 --- a/exercises/matrix/README.md +++ b/exercises/matrix/README.md @@ -56,31 +56,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test matrix_test.py` | -| 3.3+ | `pytest matrix_test.py` | -| 2.7, 3.3+ | `python -m pytest matrix_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/meetup/README.md b/exercises/meetup/README.md index 78625aed67..a5919cff46 100644 --- a/exercises/meetup/README.md +++ b/exercises/meetup/README.md @@ -42,31 +42,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test meetup_test.py` | -| 3.3+ | `pytest meetup_test.py` | -| 2.7, 3.3+ | `python -m pytest meetup_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/minesweeper/README.md b/exercises/minesweeper/README.md index 00980f626b..2382b3350f 100644 --- a/exercises/minesweeper/README.md +++ b/exercises/minesweeper/README.md @@ -42,31 +42,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test minesweeper_test.py` | -| 3.3+ | `pytest minesweeper_test.py` | -| 2.7, 3.3+ | `python -m pytest minesweeper_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/nth-prime/README.md b/exercises/nth-prime/README.md index 003dbcaa54..09076e72f0 100644 --- a/exercises/nth-prime/README.md +++ b/exercises/nth-prime/README.md @@ -24,31 +24,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test nth_prime_test.py` | -| 3.3+ | `pytest nth_prime_test.py` | -| 2.7, 3.3+ | `python -m pytest nth_prime_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/nucleotide-count/README.md b/exercises/nucleotide-count/README.md index d98b0d12a6..5470c1d1df 100644 --- a/exercises/nucleotide-count/README.md +++ b/exercises/nucleotide-count/README.md @@ -28,31 +28,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test nucleotide_count_test.py` | -| 3.3+ | `pytest nucleotide_count_test.py` | -| 2.7, 3.3+ | `python -m pytest nucleotide_count_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/ocr-numbers/README.md b/exercises/ocr-numbers/README.md index aaf75ad141..e8d13e1d73 100644 --- a/exercises/ocr-numbers/README.md +++ b/exercises/ocr-numbers/README.md @@ -94,31 +94,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test ocr_numbers_test.py` | -| 3.3+ | `pytest ocr_numbers_test.py` | -| 2.7, 3.3+ | `python -m pytest ocr_numbers_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/octal/README.md b/exercises/octal/README.md index 5b42c56f82..1d9b9d6388 100644 --- a/exercises/octal/README.md +++ b/exercises/octal/README.md @@ -62,31 +62,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test octal_test.py` | -| 3.3+ | `pytest octal_test.py` | -| 2.7, 3.3+ | `python -m pytest octal_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/palindrome-products/README.md b/exercises/palindrome-products/README.md index 30a8680367..a1afd08a89 100644 --- a/exercises/palindrome-products/README.md +++ b/exercises/palindrome-products/README.md @@ -48,31 +48,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test palindrome_products_test.py` | -| 3.3+ | `pytest palindrome_products_test.py` | -| 2.7, 3.3+ | `python -m pytest palindrome_products_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/pangram/README.md b/exercises/pangram/README.md index 1ad5ec429c..2e5fa4181d 100644 --- a/exercises/pangram/README.md +++ b/exercises/pangram/README.md @@ -24,31 +24,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test pangram_test.py` | -| 3.3+ | `pytest pangram_test.py` | -| 2.7, 3.3+ | `python -m pytest pangram_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/parallel-letter-frequency/README.md b/exercises/parallel-letter-frequency/README.md index a644c8eee7..477f9317cd 100644 --- a/exercises/parallel-letter-frequency/README.md +++ b/exercises/parallel-letter-frequency/README.md @@ -23,31 +23,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test parallel_letter_frequency_test.py` | -| 3.3+ | `pytest parallel_letter_frequency_test.py` | -| 2.7, 3.3+ | `python -m pytest parallel_letter_frequency_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/pascals-triangle/README.md b/exercises/pascals-triangle/README.md index c9cfbc9e87..bb7ca751fd 100644 --- a/exercises/pascals-triangle/README.md +++ b/exercises/pascals-triangle/README.md @@ -30,31 +30,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test pascals_triangle_test.py` | -| 3.3+ | `pytest pascals_triangle_test.py` | -| 2.7, 3.3+ | `python -m pytest pascals_triangle_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/perfect-numbers/README.md b/exercises/perfect-numbers/README.md index 9db338ab60..bb130d57a6 100644 --- a/exercises/perfect-numbers/README.md +++ b/exercises/perfect-numbers/README.md @@ -33,31 +33,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test perfect_numbers_test.py` | -| 3.3+ | `pytest perfect_numbers_test.py` | -| 2.7, 3.3+ | `python -m pytest perfect_numbers_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/phone-number/README.md b/exercises/phone-number/README.md index 0b70823790..581302b029 100644 --- a/exercises/phone-number/README.md +++ b/exercises/phone-number/README.md @@ -44,31 +44,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test phone_number_test.py` | -| 3.3+ | `pytest phone_number_test.py` | -| 2.7, 3.3+ | `python -m pytest phone_number_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/pig-latin/README.md b/exercises/pig-latin/README.md index 7fe85e9f3e..77a16a9da3 100644 --- a/exercises/pig-latin/README.md +++ b/exercises/pig-latin/README.md @@ -33,31 +33,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test pig_latin_test.py` | -| 3.3+ | `pytest pig_latin_test.py` | -| 2.7, 3.3+ | `python -m pytest pig_latin_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/point-mutations/README.md b/exercises/point-mutations/README.md index 8275e13ac3..dce6b700d2 100644 --- a/exercises/point-mutations/README.md +++ b/exercises/point-mutations/README.md @@ -50,31 +50,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test point_mutations_test.py` | -| 3.3+ | `pytest point_mutations_test.py` | -| 2.7, 3.3+ | `python -m pytest point_mutations_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/poker/README.md b/exercises/poker/README.md index 58d91fc1a9..9d62cfa552 100644 --- a/exercises/poker/README.md +++ b/exercises/poker/README.md @@ -21,31 +21,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test poker_test.py` | -| 3.3+ | `pytest poker_test.py` | -| 2.7, 3.3+ | `python -m pytest poker_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/pov/README.md b/exercises/pov/README.md index f054c7d9fd..170ac0dff9 100644 --- a/exercises/pov/README.md +++ b/exercises/pov/README.md @@ -53,31 +53,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test pov_test.py` | -| 3.3+ | `pytest pov_test.py` | -| 2.7, 3.3+ | `python -m pytest pov_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/prime-factors/README.md b/exercises/prime-factors/README.md index 09f5f63d43..cf2260c6c3 100644 --- a/exercises/prime-factors/README.md +++ b/exercises/prime-factors/README.md @@ -45,31 +45,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test prime_factors_test.py` | -| 3.3+ | `pytest prime_factors_test.py` | -| 2.7, 3.3+ | `python -m pytest prime_factors_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/protein-translation/README.md b/exercises/protein-translation/README.md index c7d03ebafd..0dab8ed6a7 100644 --- a/exercises/protein-translation/README.md +++ b/exercises/protein-translation/README.md @@ -57,31 +57,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test protein_translation_test.py` | -| 3.3+ | `pytest protein_translation_test.py` | -| 2.7, 3.3+ | `python -m pytest protein_translation_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/proverb/README.md b/exercises/proverb/README.md index 992e5ba48b..50c18520f1 100644 --- a/exercises/proverb/README.md +++ b/exercises/proverb/README.md @@ -32,31 +32,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test proverb_test.py` | -| 3.3+ | `pytest proverb_test.py` | -| 2.7, 3.3+ | `python -m pytest proverb_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/pythagorean-triplet/README.md b/exercises/pythagorean-triplet/README.md index a4b71c8daa..33dcc5d739 100644 --- a/exercises/pythagorean-triplet/README.md +++ b/exercises/pythagorean-triplet/README.md @@ -33,31 +33,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test pythagorean_triplet_test.py` | -| 3.3+ | `pytest pythagorean_triplet_test.py` | -| 2.7, 3.3+ | `python -m pytest pythagorean_triplet_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/queen-attack/README.md b/exercises/queen-attack/README.md index 00c286788a..5163ef91a3 100644 --- a/exercises/queen-attack/README.md +++ b/exercises/queen-attack/README.md @@ -42,31 +42,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test queen_attack_test.py` | -| 3.3+ | `pytest queen_attack_test.py` | -| 2.7, 3.3+ | `python -m pytest queen_attack_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/rail-fence-cipher/README.md b/exercises/rail-fence-cipher/README.md index 3c0448f643..06aa7e590d 100644 --- a/exercises/rail-fence-cipher/README.md +++ b/exercises/rail-fence-cipher/README.md @@ -74,31 +74,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test rail_fence_cipher_test.py` | -| 3.3+ | `pytest rail_fence_cipher_test.py` | -| 2.7, 3.3+ | `python -m pytest rail_fence_cipher_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/raindrops/README.md b/exercises/raindrops/README.md index 87dd361fb0..a70a8744b1 100644 --- a/exercises/raindrops/README.md +++ b/exercises/raindrops/README.md @@ -33,31 +33,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test raindrops_test.py` | -| 3.3+ | `pytest raindrops_test.py` | -| 2.7, 3.3+ | `python -m pytest raindrops_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/react/README.md b/exercises/react/README.md index 386be26da5..4101b60111 100644 --- a/exercises/react/README.md +++ b/exercises/react/README.md @@ -31,31 +31,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test react_test.py` | -| 3.3+ | `pytest react_test.py` | -| 2.7, 3.3+ | `python -m pytest react_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/rectangles/README.md b/exercises/rectangles/README.md index 38dc2ce8a5..31f9b273ad 100644 --- a/exercises/rectangles/README.md +++ b/exercises/rectangles/README.md @@ -79,31 +79,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test rectangles_test.py` | -| 3.3+ | `pytest rectangles_test.py` | -| 2.7, 3.3+ | `python -m pytest rectangles_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/reverse-string/README.md b/exercises/reverse-string/README.md index b025f4f4c3..c63c49b6b9 100644 --- a/exercises/reverse-string/README.md +++ b/exercises/reverse-string/README.md @@ -22,31 +22,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test reverse_string_test.py` | -| 3.3+ | `pytest reverse_string_test.py` | -| 2.7, 3.3+ | `python -m pytest reverse_string_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/rna-transcription/README.md b/exercises/rna-transcription/README.md index 9e60bdf03f..b7c01fc89d 100644 --- a/exercises/rna-transcription/README.md +++ b/exercises/rna-transcription/README.md @@ -37,31 +37,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test rna_transcription_test.py` | -| 3.3+ | `pytest rna_transcription_test.py` | -| 2.7, 3.3+ | `python -m pytest rna_transcription_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/robot-name/README.md b/exercises/robot-name/README.md index 81535135bb..51a03fc316 100644 --- a/exercises/robot-name/README.md +++ b/exercises/robot-name/README.md @@ -31,31 +31,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test robot_name_test.py` | -| 3.3+ | `pytest robot_name_test.py` | -| 2.7, 3.3+ | `python -m pytest robot_name_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/robot-simulator/README.md b/exercises/robot-simulator/README.md index daac9a1cbd..44e55ee89a 100644 --- a/exercises/robot-simulator/README.md +++ b/exercises/robot-simulator/README.md @@ -43,31 +43,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test robot_simulator_test.py` | -| 3.3+ | `pytest robot_simulator_test.py` | -| 2.7, 3.3+ | `python -m pytest robot_simulator_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/roman-numerals/README.md b/exercises/roman-numerals/README.md index 9e54db42be..edf49d030e 100644 --- a/exercises/roman-numerals/README.md +++ b/exercises/roman-numerals/README.md @@ -58,31 +58,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test roman_numerals_test.py` | -| 3.3+ | `pytest roman_numerals_test.py` | -| 2.7, 3.3+ | `python -m pytest roman_numerals_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/rotational-cipher/README.md b/exercises/rotational-cipher/README.md index a49447528d..c79f222570 100644 --- a/exercises/rotational-cipher/README.md +++ b/exercises/rotational-cipher/README.md @@ -46,31 +46,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test rotational_cipher_test.py` | -| 3.3+ | `pytest rotational_cipher_test.py` | -| 2.7, 3.3+ | `python -m pytest rotational_cipher_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/run-length-encoding/README.md b/exercises/run-length-encoding/README.md index 884bf67a1c..1dacdb76dd 100644 --- a/exercises/run-length-encoding/README.md +++ b/exercises/run-length-encoding/README.md @@ -39,31 +39,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test run_length_encoding_test.py` | -| 3.3+ | `pytest run_length_encoding_test.py` | -| 2.7, 3.3+ | `python -m pytest run_length_encoding_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/saddle-points/README.md b/exercises/saddle-points/README.md index c252219b9b..758e17b676 100644 --- a/exercises/saddle-points/README.md +++ b/exercises/saddle-points/README.md @@ -42,31 +42,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test saddle_points_test.py` | -| 3.3+ | `pytest saddle_points_test.py` | -| 2.7, 3.3+ | `python -m pytest saddle_points_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/say/README.md b/exercises/say/README.md index b182239fbb..e8f59898da 100644 --- a/exercises/say/README.md +++ b/exercises/say/README.md @@ -78,31 +78,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test say_test.py` | -| 3.3+ | `pytest say_test.py` | -| 2.7, 3.3+ | `python -m pytest say_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/scale-generator/README.md b/exercises/scale-generator/README.md index 94b6b5fddb..80cadfb227 100644 --- a/exercises/scale-generator/README.md +++ b/exercises/scale-generator/README.md @@ -71,31 +71,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test scale_generator_test.py` | -| 3.3+ | `pytest scale_generator_test.py` | -| 2.7, 3.3+ | `python -m pytest scale_generator_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/scrabble-score/README.md b/exercises/scrabble-score/README.md index 4367cdfd00..f80f2ba3f1 100644 --- a/exercises/scrabble-score/README.md +++ b/exercises/scrabble-score/README.md @@ -55,31 +55,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test scrabble_score_test.py` | -| 3.3+ | `pytest scrabble_score_test.py` | -| 2.7, 3.3+ | `python -m pytest scrabble_score_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/secret-handshake/README.md b/exercises/secret-handshake/README.md index 9f2868e1f6..1eba9fc36e 100644 --- a/exercises/secret-handshake/README.md +++ b/exercises/secret-handshake/README.md @@ -44,31 +44,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test secret_handshake_test.py` | -| 3.3+ | `pytest secret_handshake_test.py` | -| 2.7, 3.3+ | `python -m pytest secret_handshake_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/series/README.md b/exercises/series/README.md index 68d2fd7015..a34c51ebf1 100644 --- a/exercises/series/README.md +++ b/exercises/series/README.md @@ -36,31 +36,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test series_test.py` | -| 3.3+ | `pytest series_test.py` | -| 2.7, 3.3+ | `python -m pytest series_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/sieve/README.md b/exercises/sieve/README.md index d9c40dc83d..70c8dcae03 100644 --- a/exercises/sieve/README.md +++ b/exercises/sieve/README.md @@ -43,31 +43,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test sieve_test.py` | -| 3.3+ | `pytest sieve_test.py` | -| 2.7, 3.3+ | `python -m pytest sieve_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/simple-cipher/README.md b/exercises/simple-cipher/README.md index 75796546cc..9568b99917 100644 --- a/exercises/simple-cipher/README.md +++ b/exercises/simple-cipher/README.md @@ -115,31 +115,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test simple_cipher_test.py` | -| 3.3+ | `pytest simple_cipher_test.py` | -| 2.7, 3.3+ | `python -m pytest simple_cipher_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/simple-linked-list/README.md b/exercises/simple-linked-list/README.md index 79b90adc8f..c2ef7df70a 100644 --- a/exercises/simple-linked-list/README.md +++ b/exercises/simple-linked-list/README.md @@ -49,31 +49,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test simple_linked_list_test.py` | -| 3.3+ | `pytest simple_linked_list_test.py` | -| 2.7, 3.3+ | `python -m pytest simple_linked_list_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/space-age/README.md b/exercises/space-age/README.md index d7838b1eb2..ae4e5deda2 100644 --- a/exercises/space-age/README.md +++ b/exercises/space-age/README.md @@ -33,31 +33,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test space_age_test.py` | -| 3.3+ | `pytest space_age_test.py` | -| 2.7, 3.3+ | `python -m pytest space_age_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/spiral-matrix/README.md b/exercises/spiral-matrix/README.md index 35b0a0dee6..5a0d4c89cf 100644 --- a/exercises/spiral-matrix/README.md +++ b/exercises/spiral-matrix/README.md @@ -39,31 +39,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test spiral_matrix_test.py` | -| 3.3+ | `pytest spiral_matrix_test.py` | -| 2.7, 3.3+ | `python -m pytest spiral_matrix_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/strain/README.md b/exercises/strain/README.md index f2119d9263..68b5315747 100644 --- a/exercises/strain/README.md +++ b/exercises/strain/README.md @@ -49,31 +49,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test strain_test.py` | -| 3.3+ | `pytest strain_test.py` | -| 2.7, 3.3+ | `python -m pytest strain_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/sublist/README.md b/exercises/sublist/README.md index 22bbf80ee2..dad2e4ae88 100644 --- a/exercises/sublist/README.md +++ b/exercises/sublist/README.md @@ -33,31 +33,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test sublist_test.py` | -| 3.3+ | `pytest sublist_test.py` | -| 2.7, 3.3+ | `python -m pytest sublist_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/sum-of-multiples/README.md b/exercises/sum-of-multiples/README.md index 012af8689c..314ef27404 100644 --- a/exercises/sum-of-multiples/README.md +++ b/exercises/sum-of-multiples/README.md @@ -24,31 +24,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test sum_of_multiples_test.py` | -| 3.3+ | `pytest sum_of_multiples_test.py` | -| 2.7, 3.3+ | `python -m pytest sum_of_multiples_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/tournament/README.md b/exercises/tournament/README.md index 9d4962da98..c6d3e9cf3b 100644 --- a/exercises/tournament/README.md +++ b/exercises/tournament/README.md @@ -80,31 +80,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test tournament_test.py` | -| 3.3+ | `pytest tournament_test.py` | -| 2.7, 3.3+ | `python -m pytest tournament_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/transpose/README.md b/exercises/transpose/README.md index c6900d1d8d..e23672ef78 100644 --- a/exercises/transpose/README.md +++ b/exercises/transpose/README.md @@ -74,31 +74,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test transpose_test.py` | -| 3.3+ | `pytest transpose_test.py` | -| 2.7, 3.3+ | `python -m pytest transpose_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/tree-building/README.md b/exercises/tree-building/README.md index 0cdd7af4f1..5ec7d0f7bf 100644 --- a/exercises/tree-building/README.md +++ b/exercises/tree-building/README.md @@ -42,31 +42,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test tree_building_test.py` | -| 3.3+ | `pytest tree_building_test.py` | -| 2.7, 3.3+ | `python -m pytest tree_building_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/triangle/README.md b/exercises/triangle/README.md index 691981e608..d4e3781c12 100644 --- a/exercises/triangle/README.md +++ b/exercises/triangle/README.md @@ -38,31 +38,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test triangle_test.py` | -| 3.3+ | `pytest triangle_test.py` | -| 2.7, 3.3+ | `python -m pytest triangle_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/trinary/README.md b/exercises/trinary/README.md index 179e9caf17..fa8e5cada7 100644 --- a/exercises/trinary/README.md +++ b/exercises/trinary/README.md @@ -37,31 +37,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test trinary_test.py` | -| 3.3+ | `pytest trinary_test.py` | -| 2.7, 3.3+ | `python -m pytest trinary_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/twelve-days/README.md b/exercises/twelve-days/README.md index 1fa5e93ec7..4e43f34ac8 100644 --- a/exercises/twelve-days/README.md +++ b/exercises/twelve-days/README.md @@ -44,31 +44,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test twelve_days_test.py` | -| 3.3+ | `pytest twelve_days_test.py` | -| 2.7, 3.3+ | `python -m pytest twelve_days_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/two-bucket/README.md b/exercises/two-bucket/README.md index 6d89a8bc06..40bf437a56 100644 --- a/exercises/two-bucket/README.md +++ b/exercises/two-bucket/README.md @@ -45,31 +45,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test two_bucket_test.py` | -| 3.3+ | `pytest two_bucket_test.py` | -| 2.7, 3.3+ | `python -m pytest two_bucket_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/two-fer/README.md b/exercises/two-fer/README.md index 69eca73c81..dea52012a7 100644 --- a/exercises/two-fer/README.md +++ b/exercises/two-fer/README.md @@ -28,31 +28,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test two_fer_test.py` | -| 3.3+ | `pytest two_fer_test.py` | -| 2.7, 3.3+ | `python -m pytest two_fer_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/variable-length-quantity/README.md b/exercises/variable-length-quantity/README.md index 28e0de4269..59b4e908c5 100644 --- a/exercises/variable-length-quantity/README.md +++ b/exercises/variable-length-quantity/README.md @@ -47,31 +47,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test variable_length_quantity_test.py` | -| 3.3+ | `pytest variable_length_quantity_test.py` | -| 2.7, 3.3+ | `python -m pytest variable_length_quantity_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/word-count/README.md b/exercises/word-count/README.md index 3b64841627..c3c68e576c 100644 --- a/exercises/word-count/README.md +++ b/exercises/word-count/README.md @@ -27,31 +27,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test word_count_test.py` | -| 3.3+ | `pytest word_count_test.py` | -| 2.7, 3.3+ | `python -m pytest word_count_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/word-search/README.md b/exercises/word-search/README.md index d8a61c0ab7..c83f56e70c 100644 --- a/exercises/word-search/README.md +++ b/exercises/word-search/README.md @@ -42,31 +42,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test word_search_test.py` | -| 3.3+ | `pytest word_search_test.py` | -| 2.7, 3.3+ | `python -m pytest word_search_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/wordy/README.md b/exercises/wordy/README.md index 2d52313d69..170ffb1c69 100644 --- a/exercises/wordy/README.md +++ b/exercises/wordy/README.md @@ -67,31 +67,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test wordy_test.py` | -| 3.3+ | `pytest wordy_test.py` | -| 2.7, 3.3+ | `python -m pytest wordy_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/zebra-puzzle/README.md b/exercises/zebra-puzzle/README.md index a9b676190f..d2ed54f8db 100644 --- a/exercises/zebra-puzzle/README.md +++ b/exercises/zebra-puzzle/README.md @@ -41,31 +41,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test zebra_puzzle_test.py` | -| 3.3+ | `pytest zebra_puzzle_test.py` | -| 2.7, 3.3+ | `python -m pytest zebra_puzzle_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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` diff --git a/exercises/zipper/README.md b/exercises/zipper/README.md index 9964994968..876b60cbe7 100644 --- a/exercises/zipper/README.md +++ b/exercises/zipper/README.md @@ -43,31 +43,18 @@ raise Exception("Meaningful message indicating the source of the error") ## Running the tests -To run the tests, run the appropriate command below: - -| Python Version | Command | -| --- | --- | -| 2.7 | `py.test zipper_test.py` | -| 3.3+ | `pytest zipper_test.py` | -| 2.7, 3.3+ | `python -m pytest zipper_test.py` | - - - - - - - - - - - - - - - - - -
Common pytest options
-venable verbose output
-xstop running tests on first failure
--ffrun failures from previous test before running other 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`