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

tool_brickfield unit tests fail if you install qtype_coderunner

    XMLWordPrintable

Details

    • MOODLE_311_STABLE, MOODLE_400_STABLE
    • MOODLE_311_STABLE
    • MDL-73004-master_access_unit_tests
    • Hide
      1. Download, unzip and put qbehaviour_adaptive_adapted_for_coderunner in place (question/behaviour/adapted_for_coderunner directory).
      2. Download, unzip and put qtype_coderunner in place (question/type/coderunner directory).
      3. Init phpunit

        php admin/tool/phpunit/cli/init.php

      4. Run the tool_brickfield unit tests

        vendor/bin/phpunit --testsuite tool_brickfield_testsuite

      5. Verify that the unit tests pass.
      Show
      Download, unzip and put qbehaviour_adaptive_adapted_for_coderunner in place ( question/behaviour/adapted_for_coderunner directory). Download, unzip and put qtype_coderunner in place ( question/type/coderunner directory). Init phpunit php admin/tool/phpunit/cli/init.php Run the tool_brickfield unit tests vendor/bin/phpunit --testsuite tool_brickfield_testsuite Verify that the unit tests pass.

    Description

      Steps to reproduce

      1. Install qtype_coderunner from the moodle plugins DB.
      2. Run the tool_brickfield unit tests.

      Expected results: there pass.
      Actual result: there are failures.

      E.g.

      tool_brickfield\area_test::test_questiontext
      Failed asserting that actual size 23 matches expected size 4.

      /var/www/html/20211025_020001_23_tt_overnight_full/admin/tool/brickfield/tests/area_test.php:104
      /var/www/html/20211025_020001_23_tt_overnight_full/lib/phpunit/classes/advanced_testcase.php:80

      Attachments

        Issue Links

          Activity

            People

              mchurch Mike Churchward
              timhunt Tim Hunt
              Tim Hunt Tim Hunt
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours
                  2h

                  Clockify

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