Skip to content

Commit 5c968b1

Browse files
authored
set an env var to run optional test (#127)
1 parent 69c85d8 commit 5c968b1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

exercises/practice/robot-name/robot_name_spec.moon

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ describe 'robot-name', ->
5757

5858

5959
-- The next test is optional.
60-
-- Change `test_all_robots` to `true` to run it.
60+
-- Set the environment variable ENABLE_OPTIONAL_TESTS to run it:
61+
-- For example, in bash run: ENABLE_OPTIONAL_TESTS=true busted
6162
-- Check the performance tip in the hints.
62-
test_all_robots = false
6363

64-
if test_all_robots
64+
if os.getenv('ENABLE_OPTIONAL_TESTS') == 'true'
6565
pending 'all the robots and more', ->
6666
Robot\reset_names!
6767
sample_size = 26 * 26 * 1000

0 commit comments

Comments
 (0)