https://bugzilla.wikimedia.org/show_bug.cgi?id=37230
Web browser: ---
Bug #: 37230
Summary: Provide standard way to create/run QUnit tests for
Gadgets and user scripts
Product: MediaWiki
Version: 1.20-git
Platform: All
OS/Version: All
Status: NEW
Keywords: javascript
Severity: normal
Priority: Unprioritized
Component: Unit tests
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected],
[email protected]
Classification: Unclassified
Mobile Platform: ---
I was thinking about creating some QUnit tests for one of my user scripts and
also for a gadget, but AFAIK there is no standard way to do this.
The [[Special:JavaScriptTest/qunit]] only says "This function has not been
enabled on this wiki." but maybe it should provide a way to let users to run
their QUnit tests, e.g. by defining the page name of a script, or some URL
param.
For example, if a wiki has some gadgets the users (mainly sysops and gadget
editors) could follow links to pages such as
[[Special:JavaScriptTest/qunit/<some name related to the gadget>]]
(or use a URL param, as in "Special:JavaScriptTest/qunit?gadget=foo") as soon
as a gadget is changed, to ensure the latest changes didn't broke anything.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l