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

PHPUnit problems under Windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.3.5, 3.4.2, 3.5
    • Fix Version/s: 3.3.6, 3.4.3
    • Component/s: Privacy, Unit tests
    • Labels:
    • Testing Instructions:
      Hide

      Unit tests should pass in Linux and Windows. (integrator says: note that CIs will tell us for all branches and already some runs have been already performed under windows and mac, so no action is needed here from the tester - more details in the comments)

      Test on both a Windows server and a Linux server

      1. Create a course and enrol a user in that course.
      2. Create an assignment in the course
      3. Login as the user
      4. Submit a file to the assignment
      5. Export data for the user using the exporting tool
      6. Make sure that the exported data contain the file user uploaded

      Exporting tool: https://gist.github.com/andrewnicols/8c613c803d81ddd9c8d44ca8a80c8ffe

      Show
      Unit tests should pass in Linux and Windows. (integrator says: note that CIs will tell us for all branches and already some runs have been already performed under windows and mac, so no action is needed here from the tester - more details in the comments) Test on both a Windows server and a Linux server Create a course and enrol a user in that course. Create an assignment in the course Login as the user Submit a file to the assignment Export data for the user using the exporting tool Make sure that the exported data contain the file user uploaded Exporting tool: https://gist.github.com/andrewnicols/8c613c803d81ddd9c8d44ca8a80c8ffe
    • Affected Branches:
      MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE
    • Fixed Branches:
      MOODLE_33_STABLE, MOODLE_34_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-62251-master

      Description

      This was an early run in my Windows 10 VM, but I became surprised by the number of tests failing related with privacy writers and friends.

      Here it's the complete report. Note that some failures can be happening because I'm still adjusting my VM conf (permissions...). But for sure there are a good number of tests, needing patching to make them Win compatible. Hopefully core is ok, haven't looked:

      https://pastebin.com/xC44W9KF

        Attachments

          Activity

            People

            • Assignee:
              rezaie9 Shamim Rezaie
              Reporter:
              stronk7 Eloy Lafuente (stronk7)
              Peer reviewer:
              Jun Pataleta
              Integrator:
              Eloy Lafuente (stronk7)
              Tester:
              Adrian Greeve
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                17/May/18