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

Behat: add possibility to skip tests according to Moodle version

    XMLWordPrintable

Details

    Description

      In some cases, acceptance tests must be written in a different way for older and newer versions of Moodle. I suggest adding two new steps to make sure the behat site is running at least / at most a certain Moodle version. If this requirement is not met, the test will be skipped instead of failing.

      The suggested patch is heavily based on a suggestion from dobedobedoh. Thanks!

      Attachments

        Activity

          People

            philippimhof PhilippImhof
            philippimhof PhilippImhof
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Ilya Tregubov Ilya Tregubov
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              16/Jan/23

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 9 minutes
                2h 9m