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

Add some environmental information at the beginning of every behat run

    Details

    • Testing Instructions:
      Hide

      Test 1

      1. Run unit tests, you can stop them after a while, we just need to check that the site info is correctly printed.

      Test 2

      1. Update your behat site using admin/tool/behat/cli/init.php, it will download the latest moodlehq/behat-extension version
      2. Run behat with the default options (only --config)
      3. You SHOULD see something like this (you can stop the command, there is no need to run the suite)
        Moodle 2.Ndev (Build: 2013NNNN), pgsql, IAMAHASH
        Server OS "Linux", Browser: "firefox"
      4. Check that all the info is correct:
        • Moodle version
        • Database engine
        • Last commit hash
        • Your operative system
        • The browser you run (should be firefox as it is the default one)
      5. Run behat using --format pretty option
      6. The tests SHOULD begin running and you SHOULD NOT see the same header with the data above
      Show
      Test 1 Run unit tests, you can stop them after a while, we just need to check that the site info is correctly printed. Test 2 Update your behat site using admin/tool/behat/cli/init.php, it will download the latest moodlehq/behat-extension version Run behat with the default options (only --config) You SHOULD see something like this (you can stop the command, there is no need to run the suite) Moodle 2.Ndev (Build: 2013NNNN), pgsql, IAMAHASH Server OS "Linux", Browser: "firefox" Check that all the info is correct: Moodle version Database engine Last commit hash Your operative system The browser you run (should be firefox as it is the default one) Run behat using --format pretty option The tests SHOULD begin running and you SHOULD NOT see the same header with the data above
    • Affected Branches:
      MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE, MOODLE_26_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-42942_master

      Description

      Very similar to the way we do it in unit tests:

      Moodle 2.7dev (Build: 20131117), pgsql, b6813d8f6aff2f24782c1679899c561dfa234576
      PHPUnit 3.7.28 by Sebastian Bergmann.
      
      Configuration read from /Users/Shared/Jenkins/Home/git_repositories/master/phpunit.xml
      
      .............................................................   61 / 2358 (  2%)
      .............................................................  122 / 2358 (  5%)
      ...
      ...
      

      it would be interesting to have this information printed on each execution of behat tests (for easier identifying the run specifics):

      • Moodle release
      • DB type
      • current commit (if the site is git-based)
      • webdriver and OS where it's being executed.

      Ciao

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    13/Jan/14