-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lume 0.1.6 (new formula) #206942
base: master
Are you sure you want to change the base?
lume 0.1.6 (new formula) #206942
Conversation
I'd love the test to actually pull and run an image but the current smallest (Ubuntu) on the default registry is 20GB. Seems excessive for a test. Or legitimate considering what this app does (pull and run prebuilt VMs). Could use some guidance. Meanwhile, made the test just do a different command which confirms installation (get the current machine's latest IPSW image URL). |
In general, I think tests that catch expected failures are also OK, as long as they exercise non-trivial parts of the code (printing a version number or help text is as trivial as it gets). For instance, see #206363 (full disclosure: that was my PR). The version check was to verify that the manual version setting in the |
Yeah…I'm realizing the same. Playing with a new Git client (Working Copy) and seems to have messed up the amend. Please hold! |
6c5ffcc
to
f898676
Compare
Would appreciate an exception to |
247f830
to
b1012ef
Compare
The |
I don't have a good answer for allowing the exact use of assert_match /HTTP.*\w+[200|404]/, shell_output("curl -sI localhost:#{port}/lume").lines.first ( |
Need to write a good test then confirm everything is working.
Test should do more than print version: https://github.com/trycua/homebrew-lume/blob/main/Formula/lume.rb
Gotta run to another project now but pushing so work doesn't conflict with someone else. Feel free to contribute though! I'm slow but love learning by writing Homebrew formulae.
HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>
, where<formula>
is the name of the formula you're submitting?brew test <formula>
, where<formula>
is the name of the formula you're submitting?brew audit --strict <formula>
(after doingHOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>
)? If this is a new formula, does it passbrew audit --new <formula>
?