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

Include subplugins in phpunit testsuites

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Not a bug
    • Affects Version/s: 3.8.1
    • Fix Version/s: None
    • Component/s: Unit tests
    • Labels:
      None

      Description

      We have a plugin tool_certificate with subplugins

      When we run "vendor/bin/phpunit --testsuite=tool_certificate_testsuite" it only executes the tests from the tool_certificate but not from subplugins. There is no easy way to run all tests on the plugin and all subplugins.

      What is worse, moodle-plugin-ci in the command "phpunit" runs only the plugin's testsuite. We have to run:

      moodle-plugin-ci phpunit
      for item in $(vendor/bin/phpunit --list-suites | awk '{print $2}' | grep certificateelement_); do  vendor/bin/phpunit --testsuite=$item; done
      

      Would not it be better for everybody if testsuite "tool_certificate_testsuite" contained all subplugins as well?

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            marina Marina Glancy
            Participants:
            Component watchers:
            Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: