Uploaded image for project: 'Moodle Community Sites'
  1. Moodle Community Sites
  2. MDLSITE-4800

Decide upon unit test namespace rules

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Low
    • Resolution: Fixed
    • Integration
    • None

    Description

      Policy: Namespace uses within **/tests directories

      Since October 2019 (MDLSITE-4800), these rules apply to control the use of namespaces within **/tests/ directories:

      1. The use of namespaces is recommended in testing stuff.
      2. Their 1st level namespace will match 100% the component they belong to.
      3. Sub-namespaces are allowed, strictly following the general namespace rules in moodle (APIs and local).

      While I have been unable to find it, we have asked already a number of times for unit tests not to use namespaces. This is about try to ensure that's observed:

      Ciao

      Attachments

        Issue Links

          Activity

            People

              stronk7 Eloy Lafuente (stronk7)
              stronk7 Eloy Lafuente (stronk7)
              Eloy Lafuente (stronk7)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: