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

PHPUnit problems under Windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 3.3.6, 3.4.3
    • 3.3.5, 3.4.2, 3.5
    • Privacy, Unit tests
    • MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE
    • MOODLE_33_STABLE, MOODLE_34_STABLE
    • MDL-62251-master
    • 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

      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

            rezaie9 Shamim Rezaie
            stronk7 Eloy Lafuente (stronk7)
            Jun Pataleta Jun Pataleta
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Adrian Greeve Adrian Greeve
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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