aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
AgeCommit message (Collapse)Author
2017-07-25Merge pull request #2931 from JCount/version-devel-parsing-improvements1.2.5Mike McQuaid
version: improve devel spec version parsing
2017-07-25Merge pull request #2911 from GauthamGoli/audit_urls_rubocop_part_1Mike McQuaid
audit: Port audit_urls partially to rubocop and add corresponding tests
2017-07-24Merge pull request #2861 from reitermarkus/cask-search-ttyMarkus Reiter
Output plain list when running `brew cask search` without a TTY.
2017-07-22verion_spec: add test coverage for devel spec version styleJCount
also expand coverage for improved dash version style
2017-07-21audit: Port audit_urls partially to rubocop and add corresponding testsGautham Goli
2017-07-21Merge pull request #2906 from GauthamGoli/new_formula_rubocop_fixMike McQuaid
style: disable NewFormulaAudit cops' execution by default unless specified
2017-07-20Add updated diagnostic test for build from source check.Justin Baugh
2017-07-18Merge pull request #2883 from mistydemeo/allow_passing_hash_to_systemMisty De Meo
Allow passing hash to system
2017-07-18Add a rubocop config file to control cops' execution in audit and styleGautham Goli
2017-07-15Add `with_env` helper to set temporary ENV varsMisty De Meo
2017-07-15audit: Port audit_options rules for new formulae to rubocop and add testGautham Goli
2017-07-14audit: Port audit_options strict rules to rubocop and add testsGautham Goli
2017-07-14Merge pull request #2879 from GauthamGoli/audit_option_rubocop_1Mike McQuaid
audit: Port audit_options non-strict rules to rubocop and add tests
2017-07-13integration_test: try tests on Gem load failure.Mike McQuaid
This should help with debugging `Gem::LoadError`s (e.g. for https://github.com/Homebrew/homebrew-test-bot/pull/111).
2017-07-13Read rubocop offenses as const from corresponding class in testsGautham Goli
2017-07-13audit: Port audit_options non-strict rules to rubocop and add testsGautham Goli
2017-07-10Merge pull request #2872 from MikeMcQuaid/fix-high-sierra-testsMike McQuaid
Fix `brew tests` on High Sierra.
2017-07-10integration_test: add simplecov libs when needed.Mike McQuaid
Don't add these unconditionally or with Bundler to speed things up a bit. Also, to speed things up further cache these arguments so we don't have to do the same generation every time.
2017-07-10Add test for non-TTY `brew cask search`.Markus Reiter
2017-07-08Merge pull request #2843 from GauthamGoli/audit_conflicts_rubocopMike McQuaid
audit: Port audit_conflicts method to rubocop and add tests
2017-07-08Add helper for testing TTY output.Markus Reiter
2017-07-07Output plain list when running `brew cask search` without a TTY.Markus Reiter
2017-07-07spec_helper: add focus support.Mike McQuaid
When adding `, :focus` as a trailing argument to a `describe` or `it` this allows you to only run that single test.
2017-07-07audit: Port audit_conflicts method to rubocop and add testsGautham Goli
2017-07-07Fix `brew tests` on High Sierra.Mike McQuaid
The `brew test` tests were failing as they were unable to include `test/unit/assertions`. This is because it's a gem and we were setting the `GEM_HOME` so system gems were being ignored. While I was there and examining the `$LOAD_PATH`: reduce the number of things we add there by using `Bundler.with_clean_env` and only adding `HOMEBREW_LIBRARY_PATH` in the `$LOAD_PATH` if it isn't already there (which it always is [and has to be] for integration tests). This also seems to have the side effect of speeding up integration tests from 1m26s to 1m8s on my machine.
2017-07-07language/node: general cleanup.Mike McQuaid
- Avoid using a temporary variable where not necessary - Use fewer, better stubs in the tests to avoid warnings and better test the implemented functionality.
2017-07-05Bump `rubocop-cask` version.Markus Reiter
2017-07-02Merge pull request #2772 from reitermarkus/dmg-eulaMarkus Reiter
Fix DMG mounting.
2017-07-01Merge pull request #2825 from reitermarkus/refactoringMarkus Reiter
Refactoring using `Forwardable` and `DelegateClass`.
2017-06-30Merge pull request #2827 from JCount/version-improve-url-only-version-parsingJCount
version: improve url-only version parsing
2017-06-30version_spec: add tests for char prefixed and w.x.y.z url-only stylesJCount
2017-06-30Merge pull request #2826 from chrmoritz/languagenodeMike McQuaid
language/node: multiple improvements
2017-06-30Merge pull request #2819 from reitermarkus/trashMarkus Reiter
🗑️ Use AppleScript instead of Swift for trashing.
2017-06-30Refactor Formula/Cask dependencies.Markus Reiter
2017-06-30partly revert log verbose npm pack output commitChristian Moritz
to fix issues with shwoing npm debug output even on non-verbose install runs.
2017-06-29language/node: set cache config via argumentChristian Moritz
instead of writing a .npmrc file, which simplifies the code. npm_cache_config is still preserved for backwarts compatiblility and usage int he kibana@n formulas in core.
2017-06-29language/node: npm pack ignore prepublish scriptsChristian Moritz
This tells npm pack to don't run prepublish scripts at all. I think this is the best default because: * most modules don't have a prepublish script at all and aren't affected by this change * most prepublish scripts are calling devDeps, which would fail in our case, because (dev)Deps aren't installed at npm pack time until #2820 gets resolved * we favor npm registry tarball for formula downloads, which are already prepublished, so we would in the best case needlessly run prepublish a second time and in the worst case it would fail (because a clean step is required before running prepublish a second time in a row) * This change does the right thing for >99% of all the packages and would only affect packages with prepublish scripts downloaded from a non-npm registry tarball (like github tarballs) and with a prepublish script wich does no't require any devDep (unlike for cross platform)
2017-06-29language/node: log verbose npm pack outputChristian Moritz
This makes npm pack to log verbose debug output to the console to simplify debugging npm pack failures. Refs: https://github.com/Homebrew/brew/pull/2820#discussion_r123890729 Prevously Utils.popen_read swallowed all debug output.
2017-06-29language/node: build native addons from sourceChristian Moritz
By telling node-pre-gyp and prebuild to don't pull prebuild binaries and instead build them from source. This still may not work for some custom third party scripts for pulling prebuild binaries.
2017-06-29language/node: set npm loglevel to max -dddChristian Moritz
to match the loglevel used in npm_debug.log (previous --verbose loglevel would match -dd)
2017-06-29formula_desc_cop: allow formula name in descilovezfs
except at the very beginning, as the audit originally intended. See https://github.com/Homebrew/legacy-homebrew/pull/45493.
2017-06-27Add PreToken compositeEd Flanagan ed@flanagan.xyz
2017-06-25Merge pull request #2814 from mansimarkaur/javaMike McQuaid
[WIP] Added tests for language/java
2017-06-25Merge pull request #2790 from GauthamGoli/audit_legacy_patches_rubocopMike McQuaid
audit: Port audit_legacy_patches method to rubocop and add tests
2017-06-25changes test names for class methodsmansimarkaur
2017-06-25Set java environment var to test overridingmansimarkaur
2017-06-24audit: Port audit_legacy_patches method to rubocop and add testsGautham Goli
2017-06-24🔥 Remove test files after trashing.Markus Reiter
2017-06-24🗑️ Use AppleScript instead of Swift for trashing.Markus Reiter
2017-06-24Improved code qualitymansimarkaur