Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-48761

Add behat step to pause execution for debugging

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. copy attached break_test.feature
      2. Run behat with last argument as fullpath of above file
      3. Make sure you see "Paused. Press Enter/Return to continue..." and behat should wait for you to press Enter/Return key.

      If possible check this on Mac/windows/linux to ensure you don't see any problem with break message.
      On windows:

      1. run behat fetaure and make sure you get normal breakpoint message.
      2. Download latest version of ansicon from https://github.com/adoxa/ansicon/downloads
      3. Unzip and run it from console x64/ansicon.exe -I
      4. run behat feature and make sure you get colored breakpoint message.

      For Linux, please try with multiple terminal clients.
      Read http://tldp.org/HOWTO/Bash-Prompt-HOWTO/x361.html and the section on save/restore. Try some of the named terminal clients.

      Show
      copy attached break_test.feature Run behat with last argument as fullpath of above file Make sure you see "Paused. Press Enter/Return to continue..." and behat should wait for you to press Enter/Return key. If possible check this on Mac/windows/linux to ensure you don't see any problem with break message. On windows: run behat fetaure and make sure you get normal breakpoint message. Download latest version of ansicon from https://github.com/adoxa/ansicon/downloads Unzip and run it from console x64/ansicon.exe -I run behat feature and make sure you get colored breakpoint message. For Linux, please try with multiple terminal clients. Read http://tldp.org/HOWTO/Bash-Prompt-HOWTO/x361.html and the section on save/restore. Try some of the named terminal clients.
    • Affected Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE
    • Pull Master Branch:
      wip-mdl-48761

      Description

      It will be nice to have a step which wait for user input in behat for debugging.

        Attachments

        1. break_test.feature
          1 kB
        2. solution1.png
          solution1.png
          24 kB
        3. solution2.png
          solution2.png
          29 kB

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                2/Feb/15