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

Add the creation of links to the individual commands suggested in parallel executions

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      Test rerun command suggested is correct.
      1. Initialize behat with 4
      2. Introduce failure is mod_book features for run 2 and run 4 (check behat.yml for run 2 and run 4 to find feature files.)
      3. Run behat and ensure you see a command
        php admin/tool/behat/cli/run.php --rerun
      4. Copy/paste and ensure the failure runs are executed only.
      5. Init behat with -a=clean
      6. Run behat with following options and ensure you see all respective options with the rerun command.
        • --suite=clean
        • --tags=@mod_book
      7. Check behat dataroot has sub-dir within behat_dataroot for each run and there is no dir generated at same level as behat_dataroot.
      Test single run
      1. Initialize behat site for single run
      2. Using run.php run behat
      3. Ensure the command suggested to rerun works.
      4. Check behat dataroot has sub-dir within behat_dataroot for single run and there is no dir generated at same level as behat_dataroot.
      Show
      Test rerun command suggested is correct. Initialize behat with 4 Introduce failure is mod_book features for run 2 and run 4 (check behat.yml for run 2 and run 4 to find feature files.) Run behat and ensure you see a command php admin/tool/behat/cli/run.php --rerun Copy/paste and ensure the failure runs are executed only. Init behat with -a=clean Run behat with following options and ensure you see all respective options with the rerun command. --suite=clean --tags=@mod_book Check behat dataroot has sub-dir within behat_dataroot for each run and there is no dir generated at same level as behat_dataroot. Test single run Initialize behat site for single run Using run.php run behat Ensure the command suggested to rerun works. Check behat dataroot has sub-dir within behat_dataroot for single run and there is no dir generated at same level as behat_dataroot.
    • Affected Branches:
      MOODLE_30_STABLE, MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_32_STABLE
    • Pull Master Branch:
      wip-mdl-54628

      Description

      When a parallel run is executed, the suggested commands for the execution of individual runs are printed out...

      To re-run failed processes, you can use following commands:
      [behatrun1] /Users/stronk7/git_moodle/testing/vendor/bin/behat --config /Users/stronk7/Sites/moodle_data_gittesting/master/postgres_behat1/behat/behat.yml --profile="seleniumchrome" --tags="@javascript"
      [behatrun2] /Users/stronk7/git_moodle/testing/vendor/bin/behat --config /Users/stronk7/Sites/moodle_data_gittesting/master/postgres_behat2/behat/behat.yml --profile="seleniumchrome" --tags="@javascript"
      [behatrun3] /Users/stronk7/git_moodle/testing/vendor/bin/behat --config /Users/stronk7/Sites/moodle_data_gittesting/master/postgres_behat3/behat/behat.yml --profile="seleniumchrome" --tags="@javascript"
      [behatrun4] /Users/stronk7/git_moodle/testing/vendor/bin/behat --config /Users/stronk7/Sites/moodle_data_gittesting/master/postgres_behat4/behat/behat.yml --profile="seleniumchrome" --tags="@javascript"
      

      Those suggestions are missing 2 important things that should be there to avoid problems:

      1) the creation of the run links (behatrun1...)
      2) the --rerun. Missing it will reset all the information.

      This is about to try to get those suggestions applied, so the command will be really a working one (copy and paste).

      Ciao

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  13/Mar/17