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

Running "question_engine_test" alone fails

XMLWordPrintable

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

      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.

            pholden Paul Holden
            stronk7 Eloy Lafuente (stronk7)
            David Carrillo David Carrillo
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Angelia Dela Cruz Angelia Dela Cruz
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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