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

FakeDBUnitTestCase and UnitTestCaseUsingDatabase are being silently skipped

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Unit tests
    • Labels:
      None
    • Difficulty:
      Moderate
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      Since some months ago we have "old" FakeDBUnitTestCase disabled. Also UnitTestCaseUsingDatabase aren't executed if test-prefix isn't set.

      That leads to a bunch of tests of those types not being performed without further notification.

      Is it possible to add debugging/notification or whatever there, both to FakeDBUnitTestCase and UnitTestCaseUsingDatabase, in order to get some visual feedbak about each skipped test? Something like:

      • FakeDBUnitTestCase: deprecated, needs conversion to UnitTestCaseUsingDatabase
      • UnitTestCaseUsingDatabase: skipped, set the testprefix

      Right now it's skipping way too much (portfolio, completion...) to be acceptable.

      Ciao

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              stronk7 Eloy Lafuente (stronk7)
              Reporter:
              stronk7 Eloy Lafuente (stronk7)
              Tester:
              Nobody
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                24/Nov/10