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

Allow a theme to blacklist a set of tags

    XMLWordPrintable

    Details

    • Testing Instructions:
      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.
    • Affected Branches:
      MOODLE_32_STABLE
    • Fixed Branches:
      MOODLE_32_STABLE
    • Pull Master Branch:
      wip-mdl-55746

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  5/Dec/16