You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Possibly change output generation & error handling. Either:
capture all printed output via captureStream
allow print target to be switched from stdout to a mutable String / redirect stdout to a String
collect multiple good outputs, multiple nonfatal warnings, and multiple fatal errors in one mechanism to handle all information (like Result, but allowing multiple values for success, nonfatal errors, and fatal errors)
Possibly test by running from command line instead of calling Swift code
Properly apportion code between Commands & Controllers
Possibly migrate to swift-testing (requires macOS 10.15+)
Replace XCTest with either Quick/Nimble or swift-testing
The text was updated successfully, but these errors were encountered:
Improve testing & output / error handling. Will possibly separate into multiple issues later.
Downloader.swift
as aprotocol
so it can be mocked to testpurchase
,install
,lucky
, andupgrade
#591captureStream
stdout
to a mutableString
/ redirectstdout
to aString
Result
, but allowing multiple values for success, nonfatal errors, and fatal errors)The text was updated successfully, but these errors were encountered: