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

behat silently failing in some circumstance

XMLWordPrintable

    • MOODLE_25_STABLE
    • MOODLE_25_STABLE
    • MDL-39702_master
    • Hide
      1. Store a new php script in dirroot with the following contents

        <?php
         
        ini_set('display_errors', true);
        ini_set('error_reporting', E_ALL);
         
        require_once(__DIR__ . '/lib/testing/generator/data_generator.php');
        $instance = new testing_data_generator();
         
        echo "Script end\n";
        

      2. Run the script through CLI
      3. The script SHOULD end and you SHOULD NOT see any output

      Repeat the test changing file and the class name for repository_generator.php and testing_repository_generator

      Show
      Store a new php script in dirroot with the following contents <?php   ini_set('display_errors', true); ini_set('error_reporting', E_ALL);   require_once(__DIR__ . '/lib/testing/generator/data_generator.php'); $instance = new testing_data_generator();   echo "Script end\n"; Run the script through CLI The script SHOULD end and you SHOULD NOT see any output Repeat the test changing file and the class name for repository_generator.php and testing_repository_generator

      Turns out my behat problems were caused by some code of Freds breaking behat. But the weird thing is that it didn't generate any kind of error. Behat just silently fails when including lib/tests/behat/behat_data_generators.php

      We should try and ensure that the error is reported better

      You can pull from git://github.com/danpoltawski/moodle.git failing-behat to see this.

            dmonllao David Monllaó
            poltawski Dan Poltawski
            Dan Poltawski Dan Poltawski
            Damyon Wiese Damyon Wiese
            Frédéric Massart Frédéric Massart
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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