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

Running "question_engine_test" alone fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.0
    • Fix Version/s: None
    • Component/s: Unit tests
    • Labels:
      None
    • Affected Branches:
      MOODLE_400_STABLE

      Description

      Working ok MDL-67673 it was detected that running "question_engine_test" alone/isolated leads to error (cannot find class):

      $ vendor/bin/phpunit question/engine/tests/questionengine_test.php
      Moodle 4.0dev (Build: 20200827), 38abfb6a01888145878e7175e0431a156f6f1078
      Php: 7.4.4, pgsql: 9.6.18, OS: Darwin 19.6.0 x86_64
      PHPUnit 7.5.20 by Sebastian Bergmann and contributors.
       
      ...........E                                                      12 / 12 (100%)
       
      Time: 902 ms, Memory: 38.00 MB
       
      There was 1 error:
       
      1) question_engine_test::test_render_question_number
      Error: Class 'testable_core_question_renderer' not found
       
      /Users/stronk7/git_moodle/moodle/question/engine/tests/questionengine_test.php:137
      /Users/stronk7/git_moodle/moodle/lib/phpunit/classes/advanced_testcase.php:80
       
      To re-run:
       vendor/bin/phpunit "question_engine_test" question/engine/tests/questionengine_test.php
       
      ERRORS!
      Tests: 12, Assertions: 23, Errors: 1.
      

      Detected agains master, but surely also affecting previous branches.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              stronk7 Eloy Lafuente (stronk7)
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: