WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
284070
Unable to reasonably test AutoInstaller (because it is a singleton)
https://bugs.webkit.org/show_bug.cgi?id=284070
Summary
Unable to reasonably test AutoInstaller (because it is a singleton)
Sam Sneddon [:gsnedders]
Reported
2024-12-04 15:19:41 PST
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.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2024-12-04 15:19:51 PST
<
rdar://problem/140941076
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug