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

Running "question_engine_test" alone fails

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.11.4, 4.0
    • 3.11.5
    • Unit tests

    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

              pholden Paul Holden
              stronk7 Eloy Lafuente (stronk7)
              David Matamoros David Matamoros
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Angelia Dela Cruz Angelia Dela Cruz
              Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                17/Jan/22

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 45 minutes
                  45m