https://bugzilla.wikimedia.org/show_bug.cgi?id=34815

       Web browser: ---
             Bug #: 34815
           Summary: QUnit filter for 'mediawiki.js' shouldn't run other
                    mediawiki.* modules
           Product: MediaWiki
           Version: 1.18
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: Unprioritized
         Component: Unit tests
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---


QUnit's module filter unfortunately isn't really much of a module filter as it
is a prefix filter.

Every test has a name (modulename + test name), and QUnit's prefix filter is
applied to allow both filtering of modules and individual tests at the same
time.

Can be fixed by calling module('filename') instead of module('filename without
".js"').

(assuming we don't have a module name ending in .js and another one that has
.js and something after it) - even if we do, it would trim the issue down a
lot.

Now a lot of tests are run twice (once under filter=mediawiki.util and again
with filter=mediawiki).

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to