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

Allow a theme to blacklist a set of tags

XMLWordPrintable

    • MOODLE_32_STABLE
    • MOODLE_32_STABLE
    • wip-mdl-55746
    • Hide
      1. Update theme/boost/tests/behat/blacklist.json to include

          "tags": [
            "mod_assign"
          ]
        

      2. Initialise behat with --run-with-theme
      3. Check behat.yml and ensure there is no feature file in boost suite which has "mod_assign" tag.
      4. Now modify blacklist.json with following:

          "tags": [
            "@mod_assign"
          ]
        

      5. Initialise behat with --add-core-features-to-theme
      6. Check behat.yml and ensure there is no feature file in boost suite which has "mod_assign" tag.
      Show
      Update theme/boost/tests/behat/blacklist.json to include "tags": [ "mod_assign" ] Initialise behat with --run-with-theme Check behat.yml and ensure there is no feature file in boost suite which has "mod_assign" tag. Now modify blacklist.json with following: "tags": [ "@mod_assign" ] Initialise behat with --add-core-features-to-theme Check behat.yml and ensure there is no feature file in boost suite which has "mod_assign" tag.

      We now have the ability to run all core behat features on a specific theme. The theme can blacklist individual feature files - but it would be nicer for the theme to say "blacklist all the features with the @dock_blocks tag (for example)".

      This is useful for features that are optionally implemented by a theme. Drag and drop blocks is another one I thought of.

            rajeshtaneja Rajesh Taneja
            damyon Damyon Wiese
            cameron1729 cameron1729
            Dan Poltawski Dan Poltawski
            Simey Lameze Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

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