Merge pull request #7861 from Homebrew/SMillerDev-patch-1

Remove outdated suggestions from Formula#test doc
This commit is contained in:
Sean Molenaar 2020-07-01 11:07:14 +02:00 committed by GitHub
commit 0315f64550
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2659,9 +2659,13 @@ class Formula
#
# The block will create, run in and delete a temporary directory.
#
# We are fine if the executable does not error out, so we know linking
# and building the software was OK.
# <pre>system bin/"foobar", "--version"</pre>
# We want tests that don't require any user input
# and test the basic functionality of the application.
# For example foo build-foo input.foo is a good test
# and foo --version and foo --help are bad tests.
# However, a bad test is better than no test at all.
#
# See: https://docs.brew.sh/Formula-Cookbook#add-a-test-to-the-formula
#
# <pre>(testpath/"test.file").write <<~EOS
# writing some test file, if you need to