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

Add some environmental information at the beginning of every behat run

    XMLWordPrintable

Details

    • MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE
    • MOODLE_25_STABLE, MOODLE_26_STABLE
    • MDL-42942_master
    • 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

    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

      Attachments

        Issue Links

          Activity

            People

              dmonllao David Monllaó
              stronk7 Eloy Lafuente (stronk7)
              Petr Skoda Petr Skoda
              Dan Poltawski Dan Poltawski
              Dan Poltawski Dan Poltawski
              Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                13/Jan/14