aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/testing_env.rb
AgeCommit message (Collapse)Author
2013-06-14Run tests under actual OS versionJack Nagel
2013-06-11Check method existence rather than Ruby versionJack Nagel
2013-06-08Add Enumerable#group_byJack Nagel
2013-06-04Extract attr_rw from Formula for reuseJack Nagel
Closes #20239.
2013-05-25tests: extract common formula helperJack Nagel
2013-05-10Reorganize compatJack Nagel
2013-04-07Define RUBY_PATH for testsJack Nagel
2013-04-01Make testing_env somewhat readableJack Nagel
2013-03-09tests: allow setting MACOS_VERSION from the environmentJack Nagel
This makes it easy to test things that vary depending on this constant without editing testing_env.rb.
2013-01-21Allow satisfied? to be specified in a blockJack Nagel
Instead of overriding #satisfied?, Requirement subclasses can specify the condition in a block: satisfy do some_condition? end The contents of the block are evaluated in the context of the instance, and so have access to instance variables and instance methods as before. Additionally, it is wrapped in an ENV.with_build_environment block. This can be disabled by passing :build_env => false to satisfy: satisfy :build_env => false do some_condition? end
2013-01-21tests: add mocha mocking libraryJack Nagel
2013-01-12Define HOMEBREW_LIBRARY for testsJack Nagel
2012-10-25tests: define assert_empty for Ruby <= 1.8Jack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-29tests: set newly-visible global constantsJack Nagel
The changes to error ouput and logging require a few more things to be visible during installation tests. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-27Make FileUtils extension available globallyJack Nagel
Now that we are monkeypatching copy_metadata, we should load our extension up front for consistency. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-30tests: avoid unnecessary chdirJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-29tests: support "rake rcov" if rcov is installedJack Nagel
If the rcov gem is installed, `rake rcov` will generate a test coverage report in the coverage directory. I picked rcov because it is 1.8 compatible. But it could easily be swapped out for another coverage tool. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-18Simplify version comparison testsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-18Replace version strings with Version objectsJack Nagel
2012-08-12tests: require string extension before exceptionsJack Nagel
exceptions.rb now needs String#undent when it is loaded. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-09Deprecate ancient formula syntaxJack Nagel
Closes #13444. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-04Prune some requires from test filesJack Nagel
testing_env already requires utils; set up the ARGV and ENV extensions there as well. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-04Introduce new formula specsJack Nagel
2012-04-18tests: add utility method to quell outputJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-01New fails_with infrastructureJack Nagel
- Formulae can now declare failures on any compiler. - FailsWithLLVM and associated formula elements have been moved to compat. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-08-24HOMEBREW_CURL_ARGS so that tests can be more silentMax Howell
2011-03-12Refactor the brew command into one file per commandMax Howell
The code was sucking. To the extent that maintenance was hard. It's a lot easier to work with code that is sensibly split at sensible boundaries. So now it is more like that. But the refactor is minimal. Because we don't want you to have more merge hell than absolutely necessary. If you merge you will need to pay attention to brew.h.rb (as it is deleted) and bin/brew (as command logic is gone). It will be painful, but you will just have to help git out by moving any changes around manually. Note compatibility.rb. It ensures that any function renames or removals don't break anything. We're pretty serious about backwards compatibility. And that's because we encourage you to hack around with the innards. And we couldn't do that if we would then just make stuff disappear behind your back.
2010-07-08Move exceptions from global to utils; remove duplicate defintionsAdam Vandenberg
2010-06-10Fix: attr doesn't take a list.Adam Vandenberg
2010-06-10Failures during ./configure should mention config.log.Adam Vandenberg
2010-04-06Add new "testing environment" include.Adam Vandenberg