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

Move behat theme generation to behat init

    XMLWordPrintable

Details

    • MOODLE_310_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE
    • MOODLE_35_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE
    • MDL-66568-master-2
    • Hide

      This is largely tested by behat, but you may wish to see the benefit of this change in some testing:

      1. Initialise behat:

        php admin/tool/behat/cli/init.php
        

      2. Run a scenario which makes use of Javascript
        1. Confirm that once the browser window opens it does not hang around for 5-10 seconds waiting for the theme to generate
      3. Run another scenario
        1. Confirm that once the browser window opens it does not hang around for 5-10 seconds waiting for the theme to generate
      Show
      This is largely tested by behat, but you may wish to see the benefit of this change in some testing: Initialise behat: php admin/tool/behat/cli/init.php Run a scenario which makes use of Javascript Confirm that once the browser window opens it does not hang around for 5-10 seconds waiting for the theme to generate Run another scenario Confirm that once the browser window opens it does not hang around for 5-10 seconds waiting for the theme to generate

    Description

      We should:

      1. Generate the required themes during behat init
      2. Save them somewhere
      3. Restore that part of MUC on reset of the dataroot

      This allows for much faster debugging (no waiting at the start of a run for theme to generate)

      Attachments

        Issue Links

          Activity

            People

              dobedobedoh Andrew Lyons
              dobedobedoh Andrew Lyons
              Tim Hunt Tim Hunt
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                13/Jul/20

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 1 hour, 58 minutes
                  1d 1h 58m