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

Optimize tests on group_submission.feature

XMLWordPrintable

      Discovered while peer reviewing MDL-77414.

      The mod/assign/tests/behat/group_submission.feature behat test needs to be refactored a bit as it's missing the Background section, it's also full of copy paste steps, creating same courses, users, groups and activities every single scenario.

      We should look into move all the data generators steps to the Background sections, investigate if we can use Scenario Outline for some of those and other possible improvements eg. removing unnecessary steps, use data generators and etc.

      Side note: Let's record the execution time before/after the changes... pretty sure it will be a good few seconds.

            andelacruz Angelia Dela Cruz
            lameze Simey Lameze
            Simey Lameze Simey Lameze
            Andrew Lyons Andrew Lyons
            CiBoT CiBoT
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 3 hours, 32 minutes
                1d 3h 32m

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