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

Add behat step to pause execution for debugging

XMLWordPrintable

    • MOODLE_27_STABLE, MOODLE_28_STABLE
    • MOODLE_27_STABLE, MOODLE_28_STABLE
    • wip-mdl-48761
    • 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.

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

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

            rajeshtaneja Rajesh Taneja
            rajeshtaneja Rajesh Taneja
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Andrew Lyons Andrew Lyons
            David Monllaó David Monllaó
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.