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

Add specific tags to filter features from running depending on the LMS version

XMLWordPrintable

    • MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE
    • MDL-74621-master
    • Hide
      1. Add attached feature file to your Moodle installation.
      2. Run CLI: admin/tool/behat/cli/init.php
      3. Run behat with tag @lms: admin/tool/behat/cli/run.php --tags=@lms
      4. Check only 1 scenario and 3 steps passes. (no fails)
      Show
      Add attached feature file to your Moodle installation. Run CLI: admin/tool/behat/cli/init.php Run behat with tag @lms: admin/tool/behat/cli/run.php --tags=@lms Check only 1 scenario and 3 steps passes. (no fails)

      We are now moving all the existing Behat tests that we have on the app inside the app source in order to have it next to the TS code.

      The app can be executed on multiple versions on Moodle (currently starting on 3.5) but tests can differ depending on the version of LMS.

      Our proposal is to have special tags similar to the existant @app_from @app_upto to filter the different scenarios depending on the version of the LMS that is running.

      This tags can be also useful for third party plug-ins that supports different versions of LMS and tests can differ.

      I think this should be included on LMS from version 3.5 so I ask to backport and integrate this patch in all the versions we can include it.

            pferre22 Pau Ferrer
            pferre22 Pau Ferrer
            Noel De Martin Noel De Martin
            Jun Pataleta Jun Pataleta
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 5 hours, 16 minutes
                5h 16m

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