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

behat silently failing in some circumstance

    XMLWordPrintable

    Details

    • Testing Instructions:
      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
    • Affected Branches:
      MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-39702_master

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dmonllao David Monllaó
              Reporter:
              poltawski Dan Poltawski
              Peer reviewer:
              Dan Poltawski
              Integrator:
              Damyon Wiese
              Tester:
              Frédéric Massart
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                8/Jul/13