[Webkit-unassigned] [Bug 284070] New: Unable to reasonably test AutoInstaller (because it is a singleton)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Dec 4 15:19:41 PST 2024


https://bugs.webkit.org/show_bug.cgi?id=284070

            Bug ID: 284070
           Summary: Unable to reasonably test AutoInstaller (because it is
                    a singleton)
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: New Bugs
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: gsnedders at apple.com
                CC: jbedard at apple.com, webkit-bug-importer at group.apple.com

At the moment, writing any sort of unit tests for the AutoInstaller is very difficult — because it's a singleton, and thus changing any state changes behaviour for everything.

There's no strong reason for it to be a singleton — one could imagine multiple active AutoInstaller on the meta search path, each with different packages registered.

We should make it into a normal class, with webkitcorepy.AutoInstaller a "default" instance.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20241204/49ba985c/attachment-0001.htm>


More information about the webkit-unassigned mailing list